mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-30 20:16:42 +08:00 
			
		
		
		
	vc1: skip motion compensation when data for last picture is invalid
Bug-Id: 1101 Cc: libav-stable@libav.org
This commit is contained in:
		| @@ -689,6 +689,11 @@ void ff_vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg) | ||||
|     if (s->avctx->flags & AV_CODEC_FLAG_GRAY) | ||||
|         return; | ||||
|  | ||||
|     if (!s->last_picture.f->data[1]) { | ||||
|       av_log(s->avctx, AV_LOG_ERROR, "Bad data in last picture frame.\n"); | ||||
|       return; | ||||
|     } | ||||
|  | ||||
|     for (i = 0; i < 4; i++) { | ||||
|         int d = i < 2 ? dir: dir2; | ||||
|         tx = s->mv[d][i][0]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sean McGovern
					Sean McGovern