mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
frame: fix the error path in av_frame_copy_props()
First free metadata, then the side data it is contained in. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
ad0fe2f401
commit
a53551cba8
@ -383,8 +383,8 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
|
||||
if (!sd_dst) {
|
||||
for (i = 0; i < dst->nb_side_data; i++) {
|
||||
av_freep(&dst->side_data[i]->data);
|
||||
av_freep(&dst->side_data[i]);
|
||||
av_dict_free(&dst->side_data[i]->metadata);
|
||||
av_freep(&dst->side_data[i]);
|
||||
}
|
||||
av_freep(&dst->side_data);
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user