]> git.sesse.net Git - ffmpeg/commit
avutil/imgutils: add utility to get plane sizes
authorBrian Kim <bkkim@google.com>
Mon, 13 Jul 2020 17:09:37 +0000 (10:09 -0700)
committerJames Almer <jamrial@gmail.com>
Wed, 22 Jul 2020 14:41:57 +0000 (11:41 -0300)
commit3a8e9271765a07e509655346ef88a28578cbff47
treefc08c101d0352a09bb07103d4221c4cc1683bbd9
parentb5f1e057e1d102606156fd982eea5d74b305fc74
avutil/imgutils: add utility to get plane sizes

This utility helps avoid undefined behavior when doing things like
checking how much memory we need to allocate for an image before we have
allocated a buffer.

Signed-off-by: Brian Kim <bkkim@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
doc/APIchanges
libavutil/imgutils.c
libavutil/imgutils.h
libavutil/version.h