Browse Source

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
tags/v0.5
Michael Niedermayer 19 years ago
parent
commit
57d664ff32
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/cavs.c

+ 1
- 1
libavcodec/cavs.c View File

@@ -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 */


Loading…
Cancel
Save