diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-11-24 20:58:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-03-02 11:11:38 +0100 |
commit | 10a6e0c346c8eca0ccb81e8c771f47b78b0588be (patch) | |
tree | edc94a2989a93dc20de29751ab149db2f3b4f71c | |
parent | f604eab30a7ec33e6d803a4d320ca9b453bde836 (diff) | |
download | ffmpeg-10a6e0c346c8eca0ccb81e8c771f47b78b0588be.tar.gz |
avs: don't set codec timebase
Demuxers are not supposed to set it.
Set r_frame_rate and avg_frame_rate instead.
-rw-r--r-- | libavformat/avs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avs.c b/libavformat/avs.c index 22b4614cb8..7542ca7a9a 100644 --- a/libavformat/avs.c +++ b/libavformat/avs.c @@ -188,8 +188,8 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt) avs->st_video->codec->height = avs->height; avs->st_video->codec->bits_per_coded_sample=avs->bits_per_sample; avs->st_video->nb_frames = avs->nb_frames; - avs->st_video->codec->time_base = (AVRational) { - 1, avs->fps}; + avs->st_video->r_frame_rate = avs->st_video->avg_frame_rate = + (AVRational){avs->fps, 1}; } return avs_read_video_packet(s, pkt, type, sub_type, size, palette, palette_size); |