]> git.sesse.net Git - ffmpeg/commit
libavutil/frame: avoid UB when getting plane sizes
authorBrian Kim <bkkim@google.com>
Mon, 13 Jul 2020 17:09:38 +0000 (10:09 -0700)
committerJames Almer <jamrial@gmail.com>
Wed, 22 Jul 2020 14:42:54 +0000 (11:42 -0300)
commitfccbd1245f391c7ba455f72f7896a6e392d39dfa
tree5ecdccad2eae94272519082079da3e0c8710b97d
parent3a8e9271765a07e509655346ef88a28578cbff47
libavutil/frame: avoid UB when getting plane sizes

This uses av_image_fill_plane_sizes instead of av_image_fill_pointers
when we are getting plane sizes to avoid UB from adding offsets to NULL.

Signed-off-by: Brian Kim <bkkim@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/frame.c