diff options
author | Andrew Wason <rectalogic@rectalogic.com> | 2008-10-20 07:35:17 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-10-20 07:35:17 +0000 |
commit | 772581680ce4f1804c18916a636005713c612093 (patch) | |
tree | c7b4b2298f703120d332fa783693e30fc280b79e | |
parent | ccfe8ae310b54814d22dde1ed289e6891cac243d (diff) | |
download | ffmpeg-772581680ce4f1804c18916a636005713c612093.tar.gz |
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
-rw-r--r-- | libavcodec/rawenc.c | 1 |
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); } |