diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-07-04 17:08:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-07-04 17:08:35 +0000 |
commit | 57d664ff329255363f2d0352741bd86e37dd1bfa (patch) | |
tree | 070cfa9766fc37b5e5f300d2f656c7bdc5a709fe /libavcodec/cavs.c | |
parent | 784036e4044c971ecef0c14058f2770ca7d8bcd5 (diff) | |
download | ffmpeg-57d664ff329255363f2d0352741bd86e37dd1bfa.tar.gz |
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/cavs.c')
-rw-r--r-- | libavcodec/cavs.c | 2 |
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 */ |