summaryrefslogtreecommitdiff
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-01-31 22:30:49 +0000
committerMåns Rullgård <mans@mansr.com>2009-01-31 22:30:49 +0000
commita95d00b2877b9264d6958395e8e2937e02722181 (patch)
tree74afda9a87787c9b5995a8470082de1e25532440 /libavcodec/shorten.c
parentf579d24bad9b9bf26a44e699947cb3fe43db6289 (diff)
shorten: trivial simplification of signature check
Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index eda91c26f8..89b9ff5aab 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;
}