From f1a06ca80b8c55829d57adf3e4e4ec5469b924bc Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Fri, 10 Nov 2006 11:45:43 +0000
Subject: [PATCH] zero private bits

Originally committed as revision 6961 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/bitstream_filter.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c
index e4be773c6e6..b52acf60a2d 100644
--- a/libavcodec/bitstream_filter.c
+++ b/libavcodec/bitstream_filter.c
@@ -238,8 +238,10 @@ static int mp3_header_decompress(AVBitStreamFilterContext *bsfc, AVCodecContext
         if(lsf){
             FFSWAP(int, p[1], p[2]);
             header |= (p[1] & 0xC0)>>2;
+            p[1] &= 0x3F;
         }else{
             header |= p[1] & 0x30;
+            p[1] &= 0xCF;
         }
     }
 
-- 
GitLab