aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-03-01 13:02:11 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-03-03 01:03:29 +0100
commit55196e5d10af7c295352bb9a2d7565efe07ce46b (patch)
tree93c3b594de3ffe6a401873543010aa4e5145a679
parent6191198c216e0ca38d6e65270d2f1b054584a0a9 (diff)
downloadffmpeg-55196e5d10af7c295352bb9a2d7565efe07ce46b.tar.gz
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 7e4f32f4e4b93c95dcc872cb844c5548e69f352e. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavutil/frame.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 69ee240758..8811dcdcfe 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -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));
}