mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
av1dec: Don't crash if decoding of some frames have failed
If decoding with hwaccel, but decoding fails, these pointers are null at this point. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
846fbc395b
commit
a27f3c590f
@ -281,6 +281,8 @@ static void skip_mode_params(AV1DecContext *s)
|
||||
forward_idx = -1;
|
||||
backward_idx = -1;
|
||||
for (i = 0; i < AV1_REFS_PER_FRAME; i++) {
|
||||
if (!s->ref[header->ref_frame_idx[i]].raw_frame_header)
|
||||
return;
|
||||
ref_hint = s->ref[header->ref_frame_idx[i]].raw_frame_header->order_hint;
|
||||
dist = get_relative_dist(seq, ref_hint, header->order_hint);
|
||||
if (dist < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user