[FFmpeg-cvslog] lavf: set pkt_timebase at the same time as stream->time_base.

Nicolas George git at videolan.org
Thu Jul 19 23:56:00 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Jul 15 16:04:44 2012 +0200| [0e57d79b0cc576a49c4cc38a1aa5195ab334f687] | committer: Nicolas George

lavf: set pkt_timebase at the same time as stream->time_base.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e57d79b0cc576a49c4cc38a1aa5195ab334f687
---

 libavformat/utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index dfdc51d..d6035d9 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;
 }
 



More information about the ffmpeg-cvslog mailing list