From 772581680ce4f1804c18916a636005713c612093 Mon Sep 17 00:00:00 2001 From: Andrew Wason Date: Mon, 20 Oct 2008 07:35:17 +0000 Subject: 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 --- libavcodec/rawenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/rawenc.c') diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index 24f258066d..1bfc8888b8 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); } -- cgit v1.2.3