[SCM] libav/experimental: Copy pts for each raw encoded frame. Patch by Andrew Wason rectalogic rectalogic com Fixes issue 676

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:31:32 UTC 2013


The following commit has been merged in the experimental branch:
commit 772581680ce4f1804c18916a636005713c612093
Author: Andrew Wason <rectalogic at rectalogic.com>
Date:   Mon Oct 20 07:35:17 2008 +0000

    Copy pts for each raw encoded frame.
    Patch by Andrew Wason rectalogic rectalogic com
    Fixes issue 676
    
    Originally committed as revision 15653 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index 24f2580..1bfc888 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -40,6 +40,7 @@ static av_cold int raw_init_encoder(AVCodecContext *avctx)
 static int raw_encode(AVCodecContext *avctx,
                             unsigned char *frame, int buf_size, void *data)
 {
+    avctx->coded_frame->pts = ((AVFrame *)data)->pts;
     return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width,
                                                avctx->height, frame, buf_size);
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list