]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Copy pts for each raw encoded frame.
authorbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 20 Oct 2008 07:35:17 +0000 (07:35 +0000)
committerbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 20 Oct 2008 07:35:17 +0000 (07:35 +0000)
Patch by Andrew Wason rectalogic rectalogic com
Fixes issue 676

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15653 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/rawenc.c

index 24f258066df36226c458102e6b109972bebee4b7..1bfc8888b898b997757043f5b7d728e68b2c035a 100644 (file)
@@ -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);
 }