]> git.sesse.net Git - ffmpeg/commitdiff
avfilter: correct memcpy size avfilter_copy_buf_props()
authorJanne Grunau <janne-libav@jannau.net>
Tue, 9 Oct 2012 18:38:47 +0000 (20:38 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 9 Oct 2012 19:05:14 +0000 (21:05 +0200)
Does not make a difference in this case since sizeof(uint8_t*) ==
sizeof(uint8_t**). Fixes CID703814.

libavfilter/buffer.c

index c939388656e4f69f96510baf273b156a38ff91a7..439425a3ee3d7ef079ca92247762c550b40175d3 100644 (file)
@@ -146,7 +146,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
             if (!dst->extended_data)
                 return AVERROR(ENOMEM);
             memcpy(dst->extended_data, src->extended_data,
-                   planes * sizeof(dst->extended_data));
+                   planes * sizeof(*dst->extended_data));
         } else
             dst->extended_data = dst->data;