mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-16 04:15:05 +00:00
shorten: trivial simplification of signature check
Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f579d24bad
commit
a95d00b287
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user