Commit d9c4f61d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a53551cb'

* commit 'a53551cb':
  frame: fix the error path in av_frame_copy_props()
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 78a79a2c a53551cb
......@@ -483,8 +483,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment