lavf: set pkt_timebase at the same time as stream->time_base.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 15 Jul 2012 14:04:44 +0000 (16:04 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 19 Jul 2012 21:41:03 +0000 (23:41 +0200)
libavformat/utils.c

index dfdc51d..d6035d9 100644 (file)
@@ -4198,6 +4198,7 @@ void avpriv_set_pts_info(AVStream *s, int pts_wrap_bits,
         return;
     }
     s->time_base = new_tb;
+    av_codec_set_pkt_timebase(s->codec, new_tb);
     s->pts_wrap_bits = pts_wrap_bits;
 }