changeset 8715:275e2256bb11 libavcodec

shorten: trivial simplification of signature check
author mru
date Sat, 31 Jan 2009 22:30:49 +0000
parents ba1e52769fc5
children 6056e34b9504
files shorten.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/shorten.c	Sat Jan 31 22:16:17 2009 +0000
+++ b/shorten.c	Sat Jan 31 22:30:49 2009 +0000
@@ -305,7 +305,7 @@
     {
         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;
         }