lavf: deprecate r_frame_rate.
authorAnton Khirnov <anton@khirnov.net>
Tue, 26 Jun 2012 11:10:01 +0000 (13:10 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 29 Jul 2012 06:06:30 +0000 (08:06 +0200)
commitaba232cfa9b193604ed98f3fa505378d006b1b3b
tree853cfd07d72dc8b0fa63ee1a7bc76e335321f845
parentf66eeff1c8fc5c1b2e5a563cf336865d52329006
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.
21 files changed:
avconv.c
avprobe.c
libavformat/avformat.h
libavformat/avisynth.c
libavformat/avs.c
libavformat/electronicarts.c
libavformat/flvenc.c
libavformat/matroskadec.c
libavformat/mov.c
libavformat/nuv.c
libavformat/r3d.c
libavformat/rawdec.c
libavformat/rmdec.c
libavformat/utils.c
libavformat/vc1testenc.c
libavformat/version.h
tests/ref/fate/iv8-demux
tests/ref/fate/smjpeg-demux
tests/ref/fate/wmv8-drm-nodec
tests/ref/fate/wtv-demux
tests/ref/fate/xmv-demux