Mercurial > libavcodec.hg
comparison cavs.c @ 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 | 8a282f6c2248 |
comparison
equal
deleted
inserted
replaced
3409:584ff6431043 | 3410:3b72265410f3 |
---|---|
895 h->pred_mode_Y[pos] = predpred; | 895 h->pred_mode_Y[pos] = predpred; |
896 } | 896 } |
897 pred_mode_uv = get_ue_golomb(gb); | 897 pred_mode_uv = get_ue_golomb(gb); |
898 if(pred_mode_uv > 6) { | 898 if(pred_mode_uv > 6) { |
899 av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n"); | 899 av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n"); |
900 pred_mode_uv = 0; | 900 return -1; |
901 } | 901 } |
902 | 902 |
903 /* save pred modes before they get modified */ | 903 /* save pred modes before they get modified */ |
904 h->pred_mode_Y[3] = h->pred_mode_Y[5]; | 904 h->pred_mode_Y[3] = h->pred_mode_Y[5]; |
905 h->pred_mode_Y[6] = h->pred_mode_Y[8]; | 905 h->pred_mode_Y[6] = h->pred_mode_Y[8]; |