diff options
author | Karsten Otto <ottoka@posteo.de> | 2018-07-12 09:30:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-13 02:19:50 +0200 |
commit | ce372bc278ce7ff96e661f3bb109fc74d9a22279 (patch) | |
tree | dfb3f47ee53b4039314b4d97fbed5448f58350e7 /libavcodec/mpegaudiodecheader.h | |
parent | aba13dc13e5233545bdd06f514e0addbb0155c69 (diff) | |
download | ffmpeg-ce372bc278ce7ff96e661f3bb109fc74d9a22279.tar.gz |
libavcodec/mpegaudiodecheader.h: fix version check pattern
This fixes the check for the reserved MPEG audio version ID,
used to detect an invalid frame header.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpegaudiodecheader.h')
-rw-r--r-- | libavcodec/mpegaudiodecheader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodecheader.h b/libavcodec/mpegaudiodecheader.h index ed9961250a..1da2a4cb6f 100644 --- a/libavcodec/mpegaudiodecheader.h +++ b/libavcodec/mpegaudiodecheader.h @@ -63,7 +63,7 @@ static inline int ff_mpa_check_header(uint32_t header){ if ((header & 0xffe00000) != 0xffe00000) return -1; /* version check */ - if ((header & (3<<19)) == 1) + if ((header & (3<<19)) == 1<<19) return -1; /* layer check */ if ((header & (3<<17)) == 0) |