ffmpeg: rework checks for the -t option.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 3 Jul 2012 18:34:27 +0000 (20:34 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Wed, 4 Jul 2012 14:20:47 +0000 (16:20 +0200)
commit2fc354f90d61f5f1bb75dbdd808a502dec69cf99
tree7a2df588949e2b89a8f066ef0f49b8dd653f5ee1
parent7beeea8f1755d25d2eaf56cff9a04590244da393
ffmpeg: rework checks for the -t option.

This commit is based on libav's implementation and
makes sure to compare output timestamps together.
It also reduces the differences with avconv.

The changes to the test reference files are caused
by an additional packet at the end, the timestamp
of the frame encoded by this packet is always
strictly below the limit stated by the -t option.
ffmpeg.c
tests/ref/fate/bethsoft-vid
tests/ref/fate/idroq-video-encode
tests/ref/lavf/dv_fmt
tests/ref/lavf/gxf
tests/ref/lavf/ismv
tests/ref/lavf/mov
tests/ref/lavf/mpg
tests/ref/lavf/mxf
tests/ref/lavf/ogg