dont show uninitalized motion vectors
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 1 Jan 2004 16:56:04 +0000 (16:56 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 1 Jan 2004 16:56:04 +0000 (16:56 +0000)
Originally committed as revision 2645 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index d60ebd7..6729d1a 100644 (file)
@@ -1520,6 +1520,9 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){
                               direction = 1;
                               break;
                     }
+                    if(!USES_LIST(pict->mb_type[mb_index], direction))
+                        continue;
+
                     if(IS_8X8(pict->mb_type[mb_index])){
                       int i;
                       for(i=0; i<4; i++){