diff h263dec.c @ 1145:79e8ed620b17 libavcodec

better non conformant divx packed bitstream detection, so unpacked (no b frames) divx MPEG4-ES streams can be read
author michaelni
date Thu, 20 Mar 2003 17:52:30 +0000
parents 21c85c4ab2f0
children d2fd27d01df8
line wrap: on
line diff
--- a/h263dec.c	Thu Mar 20 01:00:57 2003 +0000
+++ b/h263dec.c	Thu Mar 20 17:52:30 2003 +0000
@@ -128,7 +128,7 @@
 static int get_consumed_bytes(MpegEncContext *s, int buf_size){
     int pos= (get_bits_count(&s->gb)+7)>>3;
     
-    if(s->divx_version>=500){
+    if(s->divx_packed){
         //we would have to scan through the whole buf to handle the weird reordering ...
         return buf_size; 
     }else if(s->flags&CODEC_FLAG_TRUNCATED){
@@ -675,7 +675,7 @@
         }
     
     /* divx 5.01+ bistream reorder stuff */
-    if(s->codec_id==CODEC_ID_MPEG4 && s->bitstream_buffer_size==0 && s->divx_version>=500){
+    if(s->codec_id==CODEC_ID_MPEG4 && s->bitstream_buffer_size==0 && s->divx_packed){
         int current_pos= get_bits_count(&s->gb)>>3;
 
         if(   buf_size - current_pos > 5