aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-11-02 00:05:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-11-02 00:05:06 +0000
commit8671359bfc57c3ee9c753033a79c15ea73c12c38 (patch)
treea1bfb08129e2349802019c4060098bd277b6b4d1 /libavcodec
parent75460b0ce5d7b23699799bd11b3bb6a516cb4f8e (diff)
downloadffmpeg-8671359bfc57c3ee9c753033a79c15ea73c12c38.tar.gz
better padding bug detection
Originally committed as revision 1139 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 3a49b97e6b..676df6e314 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -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