Commit ce372bc2 authored by Karsten Otto's avatar Karsten Otto Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent aba13dc1
......@@ -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)
......
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