]> git.sesse.net Git - ffmpeg/commit
avutil/imgutils: don't fill data pointers for missing planes
authorJames Almer <jamrial@gmail.com>
Fri, 24 Jul 2020 18:04:05 +0000 (15:04 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 27 Jul 2020 00:44:58 +0000 (21:44 -0300)
commit5ce47d0aad31eff27a8626dd99774623f4d1b7a0
tree58a883bd271afe03c09c7c17a1aec499145b468e
parenta6df1fd5e96c012ba477a56b3858a310e243b921
avutil/imgutils: don't fill data pointers for missing planes

The size for a previous plane doesn't signal the presence of another after it.
If the plane is present, av_image_fill_plane_sizes() will have returned a size
for it.

Fixes a regression since 3a8e927176.

Reported-by: Imad R. Faiad <irfaiad@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/imgutils.c