diff options
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/frame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 8811dcd..69ee240 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -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)); } |