mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
avcodec/libdav1d: assert Dav1dPicture allocator_data is set before referencing its data
To ensure the custom allocator is effectively used. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
0e07b767c8
commit
254da41531
@ -206,7 +206,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
||||
return res;
|
||||
}
|
||||
|
||||
av_assert0(p->data[0] != NULL);
|
||||
av_assert0(p->data[0] && p->allocator_data);
|
||||
|
||||
// This requires the custom allocator above
|
||||
frame->buf[0] = av_buffer_ref(p->allocator_data);
|
||||
|
Loading…
Reference in New Issue
Block a user