Skip to content
Snippets Groups Projects
Commit a95d00b2 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

shorten: trivial simplification of signature check

Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f579d24b
No related branches found
No related tags found
No related merge requests found
...@@ -305,7 +305,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, ...@@ -305,7 +305,7 @@ static int shorten_decode_frame(AVCodecContext *avctx,
{ {
int maxnlpc = 0; int maxnlpc = 0;
/* shorten signature */ /* 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"); av_log(s->avctx, AV_LOG_ERROR, "missing shorten magic 'ajkg'\n");
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment