shorten: trivial simplification of signature check
authorMåns Rullgård <mans@mansr.com>
Sat, 31 Jan 2009 22:30:49 +0000 (22:30 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 31 Jan 2009 22:30:49 +0000 (22:30 +0000)
Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/shorten.c

index eda91c2..89b9ff5 100644 (file)
@@ -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;
         }