summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-07-04 17:08:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-07-04 17:08:35 +0000
commit57d664ff329255363f2d0352741bd86e37dd1bfa (patch)
tree070cfa9766fc37b5e5f300d2f656c7bdc5a709fe /libavcodec
parent784036e4044c971ecef0c14058f2770ca7d8bcd5 (diff)
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cavs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c
index 996567cbe4..6752c2aef6 100644
--- a/libavcodec/cavs.c
+++ b/libavcodec/cavs.c
@@ -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 */