mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-03-03 10:17:46 +00:00
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>
This commit is contained in:
parent
6191198c21
commit
55196e5d10
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user