changeset 8039:d17ee125add1 libavcodec

Copy pts for each raw encoded frame. Patch by Andrew Wason rectalogic rectalogic com Fixes issue 676
author benoit
date Mon, 20 Oct 2008 07:35:17 +0000
parents efc935702bce
children def5fcc1d40e
files rawenc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rawenc.c	Mon Oct 20 05:59:50 2008 +0000
+++ b/rawenc.c	Mon Oct 20 07:35:17 2008 +0000
@@ -40,6 +40,7 @@
 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);
 }