diff --git a/libavformat/utils.c b/libavformat/utils.c index dfdc51de37..d6035d9f24 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; }