From 57d664ff329255363f2d0352741bd86e37dd1bfa Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 4 Jul 2006 17:08:35 +0000 Subject: [PATCH] return -1 on bitstream errors instead of continuing, as the following stuff almost always will be useless until the next startcode Originally committed as revision 5613 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cavs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index 996567c..6752c2a 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -897,7 +897,7 @@ static int decode_mb_i(AVSContext *h) { pred_mode_uv = get_ue_golomb(gb); if(pred_mode_uv > 6) { av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n"); - pred_mode_uv = 0; + return -1; } /* save pred modes before they get modified */ -- 2.7.4