Commit 77258168 authored by Andrew Wason's avatar Andrew Wason Committed by Benoit Fouet

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
parent ccfe8ae3
...@@ -40,6 +40,7 @@ static av_cold int raw_init_encoder(AVCodecContext *avctx) ...@@ -40,6 +40,7 @@ static av_cold int raw_init_encoder(AVCodecContext *avctx)
static int raw_encode(AVCodecContext *avctx, static int raw_encode(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data) 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, return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width,
avctx->height, frame, buf_size); avctx->height, frame, buf_size);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment