History

avcodec/ffv1dec: Blow up if user asks for explosion

Fixes: Ticket8403

Michael Niedermayer committed 2 years ago

Commit 747e1a21 parent 8b4e32f1 file · +3 −0Browse files

Unified · Split

libavcodec/ffv1dec.c+3−0
@@ -354,6 +354,9 @@ static int decode_slice(AVCodecContext *c, void *arg) · 353 unmodified lines
354 }354 }
355 }355 }
356 356
357 if (sc->slice_damaged && (f->avctx->err_recognition & AV_EF_EXPLODE))
358 return AVERROR_INVALIDDATA;
359
357 if ((c->active_thread_type & FF_THREAD_FRAME) && !f->frame_damaged)360 if ((c->active_thread_type & FF_THREAD_FRAME) && !f->frame_damaged)
358 ff_progress_frame_report(&f->picture, si);361 ff_progress_frame_report(&f->picture, si);
359 362

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t