lavu/imgutils: add consistency checks to av_image_copy_plane()
authorStefano Sabatini <stefasab@gmail.com>
Fri, 7 Sep 2012 22:31:41 +0000 (00:31 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 25 Nov 2012 17:19:59 +0000 (18:19 +0100)
commit252746d052652b48f7bc0652e7c1601b1e997d9c
tree2c8b3a0dc17251eb033918222dd9232bb14e2f3c
parent26c531cc223d5ac6e5fd78f2364247a3d902b946
lavu/imgutils: add consistency checks to av_image_copy_plane()

Add assertions and abort in case of invalid |dst_linesize| < bytewidth or
|src_linesize| < bytewidth.

Avoid to silently corrupt memory.
libavutil/imgutils.c
libavutil/imgutils.h
libavutil/version.h