diff mpegvideo.c @ 1712:5175116a97e8 libavcodec

dont show uninitalized motion vectors
author michael
date Thu, 01 Jan 2004 16:56:04 +0000
parents f2f8eddf1b13
children 88a2c6cc45f4
line wrap: on
line diff
--- a/mpegvideo.c	Thu Jan 01 15:13:44 2004 +0000
+++ b/mpegvideo.c	Thu Jan 01 16:56:04 2004 +0000
@@ -1520,6 +1520,9 @@
                               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++){