aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-17 00:05:51 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-17 00:05:51 +0100
commit527f1d22a1a462986715842b97018ef1accc1317 (patch)
treec5affddbbed8055cc78ceb39deba6178dafa0706 /libavformat
parent61eb602d27af68ae79af13286a16810663f82b9c (diff)
downloadffmpeg-527f1d22a1a462986715842b97018ef1accc1317.tar.gz
avformat/tedcaptionsdec: add () to protect the argument of ERR_CODE()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tedcaptionsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c
index 68063fafbe..fb578ebc03 100644
--- a/libavformat/tedcaptionsdec.c
+++ b/libavformat/tedcaptionsdec.c
@@ -51,7 +51,7 @@ static const AVClass tedcaptions_demuxer_class = {
#define HEX_DIGIT_TEST(c) (BETWEEN(c, '0', '9') || BETWEEN((c) | 32, 'a', 'z'))
#define HEX_DIGIT_VAL(c) ((c) <= '9' ? (c) - '0' : ((c) | 32) - 'a' + 10)
-#define ERR_CODE(c) (c < 0 ? c : AVERROR_INVALIDDATA)
+#define ERR_CODE(c) ((c) < 0 ? (c) : AVERROR_INVALIDDATA)
static void av_bprint_utf8(AVBPrint *bp, unsigned c)
{