You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avutil/downmix_info: zero the allocated buffer
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -27,9 +27,11 @@ AVDownmixInfo *av_downmix_info_update_side_data(AVFrame *frame)
|
||||
|
||||
side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_DOWNMIX_INFO);
|
||||
|
||||
if (!side_data)
|
||||
if (!side_data) {
|
||||
side_data = av_frame_new_side_data(frame, AV_FRAME_DATA_DOWNMIX_INFO,
|
||||
sizeof(AVDownmixInfo));
|
||||
memset(side_data->data, 0, sizeof(AVDownmixInfo));
|
||||
}
|
||||
|
||||
if (!side_data)
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user