diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/mp_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index 440e3ff5dc..8b65c441eb 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -734,6 +734,8 @@ struct AVFrame *mp_image_to_av_frame_and_unref(struct mp_image *img) void *ptr = new_ref->planes[n]; size_t size = new_ref->stride[n] * new_ref->h; frame->buf[n] = av_buffer_create(ptr, size, free_img, dummy_ref, flags); + if (!frame->buf[n]) + abort(); } talloc_free(new_ref); return frame; |