[SCM] libav/experimental: shorten: trivial simplification of signature check

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:36:34 UTC 2013


The following commit has been merged in the experimental branch:
commit a95d00b2877b9264d6958395e8e2937e02722181
Author: Måns Rullgård <mans at mansr.com>
Date:   Sat Jan 31 22:30:49 2009 +0000

    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;
         }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list