Revert "avutil/frame: Disallow zero sized frame side data"
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Mar 2017 12:02:11 +0000 (13:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Mar 2017 00:03:29 +0000 (01:03 +0100)
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 7e4f32f4e4b93c95dcc872cb844c5548e69f352e.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/frame.c

index 69ee240..8811dcd 100644 (file)
@@ -668,8 +668,6 @@ 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));
 }