[FFmpeg-cvslog] avformat/tedcaptionsdec: add () to protect the argument of ERR_CODE()

Michael Niedermayer git at videolan.org
Tue Feb 17 00:16:06 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 17 00:05:51 2015 +0100| [527f1d22a1a462986715842b97018ef1accc1317] | committer: Michael Niedermayer

avformat/tedcaptionsdec: add () to protect the argument of ERR_CODE()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=527f1d22a1a462986715842b97018ef1accc1317
---

 libavformat/tedcaptionsdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c
index 68063fa..fb578eb 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)
 {



More information about the ffmpeg-cvslog mailing list