diff options
author | James Almer <jamrial@gmail.com> | 2019-05-27 12:49:01 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-05-27 12:49:01 -0300 |
commit | 254da41531aa1959f129c95c122367bc743e6ba4 (patch) | |
tree | 45521e3706a51dedf43e56e422050f9fd0dedf7e /libavcodec | |
parent | 0e07b767c86cc23c7a959e2b39fadd2088049f94 (diff) | |
download | ffmpeg-254da41531aa1959f129c95c122367bc743e6ba4.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libdav1d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c index 541d56dac8..a009870a61 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -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); |