Commit a95d00b2 authored by Måns Rullgård's avatar Måns Rullgård

shorten: trivial simplification of signature check

Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f579d24b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment