# HG changeset patch # User michael # Date 1239054302 0 # Node ID 03fd7ea4926bf3438a099cd2a3743ddcc83b9cfc # Parent 4b801f9ae4936e0c87287ecd5abf0162e1ca4ba6 Try to honor even completely invalid motion vectors as far as is easy. Fixes issue961. diff -r 4b801f9ae493 -r 03fd7ea4926b mpegvideo_common.h --- a/mpegvideo_common.h Mon Apr 06 01:07:09 2009 +0000 +++ b/mpegvideo_common.h Mon Apr 06 21:45:02 2009 +0000 @@ -315,6 +315,7 @@ 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,