aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-04-18 13:48:20 +0100
committerMans Rullgard <mans@mansr.com>2012-04-18 13:48:20 +0100
commit3c58300269768e2dcd5cd8b55d56ecab99cb32f1 (patch)
tree4abb8c85db83a139ad8b8fd1edd149313c447654 /libavcodec/mpegaudiodec.c
parentac97d47d9b9276a930081d529a3997af13a7c0be (diff)
downloadffmpeg-3c58300269768e2dcd5cd8b55d56ecab99cb32f1.tar.gz
matroska: do not set invalid default duration if frame rate is zero
If a video track specifies a zero frame rate (invalid but occurs), this results in a division by zero and subsequent undefined conversion to integer. Setting the default duration from the frame rate only if the latter is greater than zero avoids such problems. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
0 files changed, 0 insertions, 0 deletions