changeset 3410:3b72265410f3 libavcodec

return -1 on bitstream errors instead of continuing, as the following stuff almost always will be useless until the next startcode
author michael
date Tue, 04 Jul 2006 17:08:35 +0000
parents 584ff6431043
children 5d17415fb535
files cavs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */