From: Måns Rullgård Date: Sat, 31 Jan 2009 22:30:49 +0000 (+0000) Subject: shorten: trivial simplification of signature check X-Git-Tag: v0.5~872 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a95d00b2877b9264d6958395e8e2937e02722181;p=platform%2Fupstream%2Flibav.git shorten: trivial simplification of signature check Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index eda91c2..89b9ff5 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; }