aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/kgv1dec.c
diff options
context:
space:
mode:
authorLucas Cooper <bobobo-at-google.com@ffmpeg.org>2017-04-27 15:08:29 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2017-04-29 03:54:31 +0200
commit77bc507f6f001b9f5fa75c664106261bd8f2c971 (patch)
treef11b3dfc939e43c03df364a37679469e68919bc0 /libavcodec/kgv1dec.c
parent1bee78a0198decb73619115f7e760be6b7d010e5 (diff)
downloadffmpeg-77bc507f6f001b9f5fa75c664106261bd8f2c971.tar.gz
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>
Diffstat (limited to 'libavcodec/kgv1dec.c')
0 files changed, 0 insertions, 0 deletions