ffmpeg: set muxer packet duration based on framerate only for CFR
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Nov 2015 21:53:29 +0000 (22:53 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Nov 2015 14:04:21 +0000 (15:04 +0100)
commit46070cc20aa341d385136ec767b127a956f7d9ba
tree3309c3df45c6e7a10a1e2d3a5b28c28d93f6051e
parent9ffc61b1256e42c54766e73fd899a57261eb9b3b
ffmpeg: set muxer packet duration based on framerate only for CFR

a set ost->frame_rate does not imply CFR in ffmpeg

The changed fate tests had all wrong packet durations
(like 1/1000 or 1/90000)

There might be more cases in which is_cfr could be set

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c
ffmpeg.h
tests/ref/fate/g2m2
tests/ref/fate/iff-byterun1
tests/ref/fate/iff-ilbm
tests/ref/fate/mimic
tests/ref/fate/mss2-pal
tests/ref/fate/mss2-pals
tests/ref/fate/mss2-rgb555
tests/ref/fate/mss2-rgb555s
tests/ref/fate/vp9-tiling-pedestrian