ffmpeg | branch: release/7.1 | James Almer <jamr...@gmail.com> | Fri Dec 27 11:53:16 2024 -0300| [8a72775d5dba3253c4ffd9b7ec91f73beda42641] | committer: James Almer
avutil/downmix_info: zero the allocated buffer Signed-off-by: James Almer <jamr...@gmail.com> (cherry picked from commit 0bed1b89530042f0a835b8d1178aa52b40a751f6) (cherry picked from commit a649b2a8313571fcec101143e9479299eb8bc214) > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a72775d5dba3253c4ffd9b7ec91f73beda42641 --- libavutil/downmix_info.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavutil/downmix_info.c b/libavutil/downmix_info.c index c634c6a79f..83771a3051 100644 --- a/libavutil/downmix_info.c +++ b/libavutil/downmix_info.c @@ -27,9 +27,12 @@ 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)); + if (side_data) + memset(side_data->data, 0, sizeof(AVDownmixInfo)) + } if (!side_data) return NULL; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".