pts encoding fix patch by (Thomas Jarosch <tomj at simonv dot com>)
authorThomas Jarosch <tomj@simonv.com>
Sun, 5 Jan 2003 17:17:14 +0000 (17:17 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Jan 2003 17:17:14 +0000 (17:17 +0000)
Originally committed as revision 1394 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index 219a86767f2cc5dbb3f39d1b6454b97d1bb9407e..ce3c435044f1f30b7e55aa512f06885e9580e701 100644 (file)
@@ -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->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;
     
     if(s->input_picture[encoding_delay])
         pic->display_picture_number= s->input_picture[encoding_delay]->display_picture_number + 1;