ffmpeg | branch: master | Michael Niedermayer <michae...@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 <michae...@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) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog