[libav-devel] [PATCH] avframe: note that linesize is not the usable data size

2013-09-27 Thread Anton Khirnov
---
 libavutil/frame.h |3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavutil/frame.h b/libavutil/frame.h
index d71948d..b0676e7 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -84,6 +84,9 @@ typedef struct AVFrame {
  *
  * For audio, only linesize[0] may be set. For planar audio, each channel
  * plane must be the same size.
+ *
+ * @note The linesize may be larger than the size of usable data -- there
+ * may be extra padding present for performance reasons.
  */
 int linesize[AV_NUM_DATA_POINTERS];
 
-- 
1.7.10.4

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH] avframe: note that linesize is not the usable data size

2013-09-27 Thread Luca Barbato
On 27/09/13 16:49, Anton Khirnov wrote:
 ---
  libavutil/frame.h |3 +++
  1 file changed, 3 insertions(+)
 
 diff --git a/libavutil/frame.h b/libavutil/frame.h
 index d71948d..b0676e7 100644
 --- a/libavutil/frame.h
 +++ b/libavutil/frame.h
 @@ -84,6 +84,9 @@ typedef struct AVFrame {
   *
   * For audio, only linesize[0] may be set. For planar audio, each channel
   * plane must be the same size.
 + *
 + * @note The linesize may be larger than the size of usable data -- there
 + * may be extra padding present for performance reasons.
   */

Ok.

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel