mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
avutil/frame: Disallow zero sized frame side data
There should be no case that needs this and its a potential for creating corner cases Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5804201cba
commit
7e4f32f4e4
@ -668,6 +668,8 @@ AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
|
||||
enum AVFrameSideDataType type,
|
||||
int size)
|
||||
{
|
||||
if (size <= 0)
|
||||
return NULL;
|
||||
|
||||
return frame_new_side_data(frame, type, av_buffer_alloc(size));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user