aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-06 21:45:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-04-06 21:45:02 +0000
commit38d5647a63428eae47a7135a60f2ece93f910b54 (patch)
tree0eaea401adab850e95b395240db27d6ba9fc72fa
parent99f373f3a6da62712388019e008dc76c4b8edc3b (diff)
downloadffmpeg-38d5647a63428eae47a7135a60f2ece93f910b54.tar.gz
Try to honor even completely invalid motion vectors as far as is
easy. Fixes issue961. Originally committed as revision 18344 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_common.h b/libavcodec/mpegvideo_common.h
index cf66dc7fbb..7173c8b304 100644
--- a/libavcodec/mpegvideo_common.h
+++ b/libavcodec/mpegvideo_common.h
@@ -315,6 +315,7 @@ if(s->quarter_sample)
s->codec_id == CODEC_ID_MPEG1VIDEO){
av_log(s->avctx,AV_LOG_DEBUG,
"MPEG motion vector out of boundary\n");
+ if(!s->chroma_y_shift)
return ;
}
ff_emulated_edge_mc(s->edge_emu_buffer, ptr_y, s->linesize,