mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
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
This commit is contained in:
parent
ccfe8ae310
commit
772581680c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user