Commit 55196e5d authored by Michael Niedermayer's avatar Michael Niedermayer

Revert "avutil/frame: Disallow zero sized frame side data"

Found a case where we use size==0, the other related commits
remain needed, and should be sufficient to fix the original issue

This reverts commit 7e4f32f4.
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6191198c
...@@ -668,8 +668,6 @@ AVFrameSideData *av_frame_new_side_data(AVFrame *frame, ...@@ -668,8 +668,6 @@ AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
enum AVFrameSideDataType type, enum AVFrameSideDataType type,
int size) int size)
{ {
if (size <= 0)
return NULL;
return frame_new_side_data(frame, type, av_buffer_alloc(size)); return frame_new_side_data(frame, type, av_buffer_alloc(size));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment