forked from FFmpeg/FFmpeg
avutil/downmix_info: check for side data allocation success before zeroing it
Fixes coverity #1641638. Marvin Scholz <epirat07@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
7a16bfa7c9
commit
a649b2a831
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ AVDownmixInfo *av_downmix_info_update_side_data(AVFrame *frame)
|
|||
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)
|
||||
memset(side_data->data, 0, sizeof(AVDownmixInfo));
|
||||
}
|
||||
|
||||
if (!side_data)
|
||||
|
|
Loading…
Add table
Reference in a new issue