Commit a400edbb authored by wm4's avatar wm4 Committed by Michael Niedermayer

lavu/frame: fix malloc error path in av_frame_copy_props()

The error path frees all side data, but forgets to reset the side data
count. This can blow up later in av_frame_unref() and free_side_data().
Signed-off-by: 's avatarMichael Niedermayer <>
parent 4fa42e04
......@@ -503,6 +503,7 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
dst->nb_side_data = 0;
memcpy(sd_dst->data, sd_src->data, sd_src->size);
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