OSDN Git Service

Try to honor even completely invalid motion vectors as far as is
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Apr 2009 21:45:02 +0000 (21:45 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Apr 2009 21:45:02 +0000 (21:45 +0000)
easy.
Fixes issue961.

Originally committed as revision 18344 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo_common.h

index cf66dc7..7173c8b 100644 (file)
@@ -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,