From: mru Date: Sat, 31 Jan 2009 22:30:49 +0000 (+0000) Subject: shorten: trivial simplification of signature check X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/fb8bb811bf3c7956f5d6b519b62c8da1f884317a shorten: trivial simplification of signature check git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16908 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index eda91c26f..89b9ff5aa 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -305,7 +305,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, { int maxnlpc = 0; /* shorten signature */ - if (get_bits_long(&s->gb, 32) != bswap_32(AV_RL32("ajkg"))) { + if (get_bits_long(&s->gb, 32) != AV_RB32("ajkg")) { av_log(s->avctx, AV_LOG_ERROR, "missing shorten magic 'ajkg'\n"); return -1; }