summaryrefslogtreecommitdiffstats
path: root/libavcodec/libdav1d.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-05-27 12:49:01 -0300
committerJames Almer <jamrial@gmail.com>2019-05-27 12:49:01 -0300
commit254da41531aa1959f129c95c122367bc743e6ba4 (patch)
tree45521e3706a51dedf43e56e422050f9fd0dedf7e /libavcodec/libdav1d.c
parent0e07b767c86cc23c7a959e2b39fadd2088049f94 (diff)
downloadffmpeg-streaming-254da41531aa1959f129c95c122367bc743e6ba4.zip
ffmpeg-streaming-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/libdav1d.c')
-rw-r--r--libavcodec/libdav1d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 541d56d..a009870 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);
OpenPOWER on IntegriCloud