Commit f5af3568 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1dec: keep track of errors in slice headers for EC

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 094845aa
......@@ -1610,8 +1610,10 @@ static int decode_slice(AVCodecContext *c, void *arg){
if(f->version > 2){
if(init_slice_state(f, fs) < 0)
return AVERROR(ENOMEM);
if(decode_slice_header(f, fs) < 0)
if(decode_slice_header(f, fs) < 0) {
fs->slice_damaged = 1;
return AVERROR_INVALIDDATA;
}
}
if(init_slice_state(f, fs) < 0)
return AVERROR(ENOMEM);
......
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