Commit 254da415 authored by James Almer's avatar James Almer

avcodec/libdav1d: assert Dav1dPicture allocator_data is set before referencing its data

To ensure the custom allocator is effectively used.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 0e07b767
...@@ -206,7 +206,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) ...@@ -206,7 +206,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
return res; return res;
} }
av_assert0(p->data[0] != NULL); av_assert0(p->data[0] && p->allocator_data);
// This requires the custom allocator above // This requires the custom allocator above
frame->buf[0] = av_buffer_ref(p->allocator_data); frame->buf[0] = av_buffer_ref(p->allocator_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment