aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-15 16:04:44 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-19 23:41:03 +0200
commit0e57d79b0cc576a49c4cc38a1aa5195ab334f687 (patch)
treed48b92d1928b296ffa5359a7fe2fa455b70b8d4f
parent0e18ac561145c5b9afe1eeb8916293fb20639388 (diff)
downloadffmpeg-0e57d79b0cc576a49c4cc38a1aa5195ab334f687.tar.gz
lavf: set pkt_timebase at the same time as stream->time_base.
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
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;
}