mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
better padding bug detection
Originally committed as revision 1139 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
75460b0ce5
commit
8671359bfc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user