mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-21 14:26:59 +00:00
h264: slice-mt: check master context for valid current_picture_ptr
Fixes errors in slice based multithreading introduced in 0b300daad2
.
CC: libav-stable@libav.org
This commit is contained in:
parent
a8cb1746c5
commit
5945c7b35d
@ -2624,7 +2624,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
|
||||
s->picture_structure = last_pic_structure;
|
||||
s->dropable = last_pic_dropable;
|
||||
return AVERROR_INVALIDDATA;
|
||||
} else if (!s->current_picture_ptr) {
|
||||
} else if (!s0->current_picture_ptr) {
|
||||
av_log(s->avctx, AV_LOG_ERROR,
|
||||
"unset current_picture_ptr on %d. slice\n",
|
||||
h0->current_slice + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user