diff options
author | Roman Savchenko <gmstima@gmail.com> | 2014-05-28 22:16:56 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-05-29 07:59:56 +0200 |
commit | a53551cba86bb67efcb6105fdc337a36c43132bd (patch) | |
tree | c321dd8c31303e93cd9c8f3fa0441b07e7bdd164 /libavutil | |
parent | ad0fe2f4012031c47268f14b9835088c488e1998 (diff) | |
download | ffmpeg-a53551cba86bb67efcb6105fdc337a36c43132bd.tar.gz |
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>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index cc4bfcdf4b..90485523e4 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -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); |