aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-01-01 16:56:04 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-01 16:56:04 +0000
commitae55b5330397e0c53498226fea3cf27bd46f5da2 (patch)
tree484e50bb6cb7a0810e95961807aa46051d255f2b
parent69768b77b486468bd24e37c1e31a7f99d5b93481 (diff)
downloadffmpeg-ae55b5330397e0c53498226fea3cf27bd46f5da2.tar.gz
dont show uninitalized motion vectors
Originally committed as revision 2645 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index d60ebd7e1f..6729d1a7a2 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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++){