ffv1dec: keep track of errors in slice headers for EC

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/59/head
Michael Niedermayer 13 years ago
parent 094845aad8
commit f5af3568f6
  1. 4
      libavcodec/ffv1.c

@ -1610,8 +1610,10 @@ static int decode_slice(AVCodecContext *c, void *arg){
if(f->version > 2){ if(f->version > 2){
if(init_slice_state(f, fs) < 0) if(init_slice_state(f, fs) < 0)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
if(decode_slice_header(f, fs) < 0) if(decode_slice_header(f, fs) < 0) {
fs->slice_damaged = 1;
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
}
} }
if(init_slice_state(f, fs) < 0) if(init_slice_state(f, fs) < 0)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);

Loading…
Cancel
Save