Commit 7c3a4181 authored by michaelni's avatar michaelni

better padding bug detection


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1139 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 26cd0d86
......@@ -251,10 +251,10 @@ static int decode_slice(MpegEncContext *s){
if(bits_left==0 || bits_left>8){
s->padding_bug_score++;
} else {
} else if(bits_left != 1){
int v= show_bits(&s->gb, 8);
v|= 0x7F >> (7-(bits_count&7));
if(v==0x7F)
s->padding_bug_score--;
else
......
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