You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
hevc: unref the current frame if frame_start() fails
Prevents DPB from filling up with damaged input.
This commit is contained in:
@@ -2460,7 +2460,7 @@ static int hevc_frame_start(HEVCContext *s)
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (s->ref)
|
if (s->ref)
|
||||||
ff_thread_report_progress(&s->ref->tf, INT_MAX, 0);
|
ff_hevc_unref_frame(s, s->ref, ~0);
|
||||||
s->ref = NULL;
|
s->ref = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user