]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
shorten: trivial simplification of signature check
authormru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 31 Jan 2009 22:30:49 +0000 (22:30 +0000)
committermru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 31 Jan 2009 22:30:49 +0000 (22:30 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16908 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/shorten.c

index eda91c26f8a52b006f78b6dfedbbf248df583648..89b9ff5aabf339e9ea0c7a76f147cd1ee21310c7 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;
         }