# HG changeset patch # User michael # Date 1152032915 0 # Node ID 3b72265410f396737003e51f9e4a838090b5b5ab # Parent 584ff64310436833af33cc4f4f3920c2ae3b9df5 return -1 on bitstream errors instead of continuing, as the following stuff almost always will be useless until the next startcode diff -r 584ff6431043 -r 3b72265410f3 cavs.c --- a/cavs.c Tue Jul 04 17:06:43 2006 +0000 +++ b/cavs.c Tue Jul 04 17:08:35 2006 +0000 @@ -897,7 +897,7 @@ 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 */