Skip to content
Snippets Groups Projects
Commit 79e6e8eb authored by Janne Grunau's avatar Janne Grunau
Browse files

avfilter: correct memcpy size avfilter_copy_buf_props()

Does not make a difference in this case since sizeof(uint8_t*) ==
sizeof(uint8_t**). Fixes CID703814.
parent 233a5a80
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src) ...@@ -146,7 +146,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
if (!dst->extended_data) if (!dst->extended_data)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
memcpy(dst->extended_data, src->extended_data, memcpy(dst->extended_data, src->extended_data,
planes * sizeof(dst->extended_data)); planes * sizeof(*dst->extended_data));
} else } else
dst->extended_data = dst->data; dst->extended_data = dst->data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment