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, 15 Aug 2016 16:54:34 +0000 (18:54 +0200)
commit8857dc6cd856b9f1eaf6c7f6c76b55f2ca95ef59
treede43c4b5f96a3dbbe8182522da6ec3121f06ca29
parent67c7f8ca143dc222ffa170dd190c02a0c74a155c
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>
(cherry picked from commit 6085d6b2aeef28671614f625601a23cfc922d282)

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