OSDN Git Service

fixing interlaced dct with 4mv
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2002 11:03:13 +0000 (11:03 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2002 11:03:13 +0000 (11:03 +0000)
Originally committed as revision 1050 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263.c

index 615d380..35963eb 100644 (file)
@@ -619,6 +619,11 @@ void mpeg4_encode_mb(MpegEncContext * s,
                 cbpy ^= 0xf;
                 put_bits(pb2, cbpy_tab[cbpy][1], cbpy_tab[cbpy][0]);
 
+                if(!s->progressive_sequence){
+                    if(cbp)
+                        put_bits(pb2, 1, s->interlaced_dct);
+                }
+    
                 if(interleaved_stats){
                     bits= get_bit_count(&s->pb);
                     s->misc_bits+= bits - s->last_bits;