diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-26 15:10:01 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-29 10:06:30 +0400 |
commit | aba232cfa9b193604ed98f3fa505378d006b1b3b (patch) | |
tree | 853cfd07d72dc8b0fa63ee1a7bc76e335321f845 /libavformat/nuv.c | |
parent | f66eeff1c8fc5c1b2e5a563cf336865d52329006 (diff) |
lavf: deprecate r_frame_rate.
According to its description, it is supposed to be the LCM of all the
frame durations. The usability of such a thing is vanishingly small,
especially since we cannot determine it with any amount of reliability.
Therefore get rid of it after the next bump.
Replace it with the average framerate where it makes sense.
FATE results for the wtv and xmv demux tests change. In the wtv case
this is caused by the file being corrupted (or possibly badly cut) and
containing invalid timestamps. This results in lavf estimating the
framerate wrong and making up wrong frame durations.
In the xmv case the file contains pts jumps, so again the estimated
framerate is far from anything sane and lavf again makes up different
frame durations.
In some other tests lavf starts making up frame durations from different
frame.
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r-- | libavformat/nuv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c index c1dc07f18f..3939828ffb 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -163,7 +163,10 @@ static int nuv_header(AVFormatContext *s) { vst->codec->height = height; vst->codec->bits_per_coded_sample = 10; vst->sample_aspect_ratio = av_d2q(aspect * height / width, 10000); - vst->r_frame_rate = av_d2q(fps, 60000); +#if FF_API_R_FRAME_RATE + vst->r_frame_rate = +#endif + vst->avg_frame_rate = av_d2q(fps, 60000); avpriv_set_pts_info(vst, 32, 1, 1000); } else ctx->v_id = -1; |