summaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-04-15 15:22:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-15 15:48:02 +0200
commitbcf936eaeae8db9cb5dbd9a9d4f670acd608ec86 (patch)
tree1bff81e9cd8913597bb59a684b9e9d80b841e73c /libavcodec/utils.c
parenta7fa1e38ca76a24ad8e8edc32ccfd2f15c1cf03b (diff)
downloadffmpeg-streaming-bcf936eaeae8db9cb5dbd9a9d4f670acd608ec86.zip
ffmpeg-streaming-bcf936eaeae8db9cb5dbd9a9d4f670acd608ec86.tar.gz
avcodec/utils: Add braces to framecount computation
Suggestes-by: ubitux Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 8afcb03..44843a4 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3157,7 +3157,7 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
uint8_t * extradata, int frame_size, int frame_bytes)
{
int bps = av_get_exact_bits_per_sample(id);
- int framecount = ba>0 && frame_bytes / ba>0 ? frame_bytes / ba : 1;
+ int framecount = (ba > 0 && frame_bytes / ba > 0) ? frame_bytes / ba : 1;
/* codecs with an exact constant bits per sample */
if (bps > 0 && ch > 0 && frame_bytes > 0 && ch < 32768 && bps < 32768)
OpenPOWER on IntegriCloud