History

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.

Janne Grunau committed 14 years ago

Commit 79e6e8e1 parent 233a5a81 file · +1 −1Browse files

Unified · Split

libavfilter/buffer.c+1−1
@@ -146,7 +146,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src) · 145 unmodified lines
146 if (!dst->extended_data)146 if (!dst->extended_data)
147 return AVERROR(ENOMEM);147 return AVERROR(ENOMEM);
148 memcpy(dst->extended_data, src->extended_data,148 memcpy(dst->extended_data, src->extended_data,
149 planes * sizeof(dst->extended_data));149 planes * sizeof(*dst->extended_data));
150 } else150 } else
151 dst->extended_data = dst->data;151 dst->extended_data = dst->data;
152 152

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t