changeset 465:76c8afc9c1eb libavcodec

100l divx501+ seeking bugfix
author michaelni
date Sun, 02 Jun 2002 22:08:04 +0000
parents 9b73bce5071a
children 805714c0c10f
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Sun Jun 02 16:06:41 2002 +0000
+++ b/h263dec.c	Sun Jun 02 22:08:04 2002 +0000
@@ -131,11 +131,11 @@
         return 0;
     }
 
-    if(s->bitstream_buffer_size){ //divx 5.01+ frame reorder
+    if(s->bitstream_buffer_size && buf_size<20){ //divx 5.01+ frame reorder
         init_get_bits(&s->gb, s->bitstream_buffer, s->bitstream_buffer_size);
-        s->bitstream_buffer_size=0;
     }else
         init_get_bits(&s->gb, buf, buf_size);
+    s->bitstream_buffer_size=0;
 
     /* let's go :-) */
     if (s->h263_msmpeg4) {