summaryrefslogtreecommitdiff
path: root/libavcodec/rawenc.c
diff options
context:
space:
mode:
authorAndrew Wason <rectalogic@rectalogic.com>2008-10-20 07:35:17 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-10-20 07:35:17 +0000
commit772581680ce4f1804c18916a636005713c612093 (patch)
treec7b4b2298f703120d332fa783693e30fc280b79e /libavcodec/rawenc.c
parentccfe8ae310b54814d22dde1ed289e6891cac243d (diff)
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
Diffstat (limited to 'libavcodec/rawenc.c')
-rw-r--r--libavcodec/rawenc.c1
1 files changed, 1 insertions, 0 deletions
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);
}