ffmpeg: Check that r_frame_rate is set before attempting to use it
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 May 2016 10:49:06 +0000 (12:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 May 2016 12:23:49 +0000 (14:23 +0200)
commit6085d6b2aeef28671614f625601a23cfc922d282
treec228f36f7bb85bbe174ba941290787765460705b
parentfeeb3a92616310b5f79191b0ef3064712c40b7d3
ffmpeg: Check that r_frame_rate is set before attempting to use it

Avoids unexpected occurance and dependency on NaN behavior and divisions by 0

Testcase: fate-lavf-fate-avi_cram

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c