From 4de220d2e3751c459f8739a08ac6ca52e63eba30 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Feb 2017 09:46:04 +0100 Subject: frame: allow align=0 (meaning automatic) for av_frame_get_buffer() This will avoid every caller from hardcoding some specific alignment, which may break in the future with new instruction sets. --- libavutil/frame.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavutil/frame.h') diff --git a/libavutil/frame.h b/libavutil/frame.h index c718f7bd62..4f63fb0249 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -475,7 +475,9 @@ void av_frame_move_ref(AVFrame *dst, AVFrame *src); * cases. * * @param frame frame in which to store the new buffers. - * @param align required buffer size alignment + * @param align Required buffer size alignment. If equal to 0, alignment will be + * chosen automatically for the current CPU. It is highly + * recommended to pass 0 here unless you know what you are doing. * * @return 0 on success, a negative AVERROR on error. */ -- cgit v1.2.3