Files
FFmpeg/libavformat
Lucas Cooper 77bc507f6f avformat/movenc: Explicitly address potential division by zero.
find_fps attempts to infer framerate from AVCodec's timebase. When this
results in a frame rate that isn't explicitly marked as supported in
av_timecode_check_frame_rate, find_fps returns the AVStream's
avg_frame_rate, which, per avformat.h, _may_ be set (or not).

mov_get_mpeg2_xdcam_codec_tag, mov_get_h264_codec_tag and
find_compressor attempt to call av_q2d on the return value of find_fps,
which in the above case, may result in division by zero and therefore,
an undefined frame rate when NaN is converted to int.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-04-29 03:54:31 +02:00
..
2016-07-03 04:37:48 +02:00
2017-03-31 18:19:41 +02:00
2017-03-29 14:49:29 +02:00
2017-02-01 02:57:40 +01:00
2017-01-19 02:40:43 +01:00
2016-10-21 19:41:09 +02:00
2017-02-11 20:20:07 +01:00
2017-03-23 12:51:21 +01:00
2017-04-28 10:18:44 +08:00
2016-05-04 18:16:21 +02:00
2017-03-12 18:24:49 +01:00
2017-03-12 18:24:49 +01:00
2016-05-21 18:49:45 +02:00
2017-03-30 13:26:04 +02:00
2016-11-07 00:51:49 +01:00
2016-10-09 20:09:00 +02:00
2016-07-17 13:10:27 -03:00
2016-11-24 11:22:13 +01:00
2017-03-02 11:39:54 +01:00
2016-11-23 01:16:42 +01:00
2017-01-30 11:00:58 +01:00
2016-07-17 13:10:27 -03:00
2016-05-03 15:45:10 +02:00
2016-10-09 20:09:00 +02:00
2016-08-04 16:25:40 -03:00
2015-01-11 00:35:01 +01:00
2016-11-07 00:51:49 +01:00