Commit 256a30ff authored by benoit's avatar benoit

Copy pts for each raw encoded frame.

Patch by Andrew Wason rectalogic rectalogic com
Fixes issue 676


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15653 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c313b2a0
...@@ -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