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 | 1d3144c318f0b6f99bf912344bb0e005b2b05708 (patch) | |
tree | 74b33cd3d9709b17df47bfe5895fb102ad72755c /libavformat/electronicarts.c | |
parent | 10a6e0c346c8eca0ccb81e8c771f47b78b0588be (diff) | |
download | ffmpeg-1d3144c318f0b6f99bf912344bb0e005b2b05708.tar.gz |
electronicarts: don't set codec timebase
Demuxers are not supposed to set it.
Set stream timebase and framerates instead (this is a cfr container with
no timestamps).
Diffstat (limited to 'libavformat/electronicarts.c')
-rw-r--r-- | libavformat/electronicarts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index a10e64592c..c7fbded6b3 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -417,9 +417,11 @@ static int ea_read_header(AVFormatContext *s) st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_id = ea->video_codec; st->codec->codec_tag = 0; /* no fourcc */ - st->codec->time_base = ea->time_base; st->codec->width = ea->width; st->codec->height = ea->height; + avpriv_set_pts_info(st, 33, ea->time_base.num, ea->time_base.den); + st->r_frame_rate = st->avg_frame_rate = (AVRational){ea->time_base.den, + ea->time_base.num}; } if (ea->audio_codec) { |