diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 219a86767f..ce3c435044 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1056,6 +1056,7 @@ static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg){ } pic->quality= pic_arg->quality; pic->pict_type= pic_arg->pict_type; + pic->pts = pic_arg->pts; if(s->input_picture[encoding_delay]) pic->display_picture_number= s->input_picture[encoding_delay]->display_picture_number + 1;