Commit 0548ffdd authored by michael's avatar michael

return -1 on bitstream errors instead of continuing, as the following stuff...

return -1 on bitstream errors instead of continuing, as the following stuff almost always will be useless until the next startcode


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5613 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 59db7210
...@@ -897,7 +897,7 @@ static int decode_mb_i(AVSContext *h) { ...@@ -897,7 +897,7 @@ static int decode_mb_i(AVSContext *h) {
pred_mode_uv = get_ue_golomb(gb); pred_mode_uv = get_ue_golomb(gb);
if(pred_mode_uv > 6) { if(pred_mode_uv > 6) {
av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n"); 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 */ /* save pred modes before they get modified */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment