summaryrefslogtreecommitdiff
path: root/libavutil/frame.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-02-08 09:46:04 +0100
committerAnton Khirnov <anton@khirnov.net>2017-02-11 11:37:45 +0100
commit4de220d2e3751c459f8739a08ac6ca52e63eba30 (patch)
tree099e9902726a41b8f0dd7d39fa66d6874c79cc4c /libavutil/frame.h
parentf44ec22e095c5ba00ffeadd891655c456e3dd014 (diff)
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.
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r--libavutil/frame.h4
1 files changed, 3 insertions, 1 deletions
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.
*/