[FFmpeg-cvslog] lavc: extend frame_size doxy.

Anton Khirnov git at videolan.org
Mon Oct 22 15:01:35 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Oct 17 07:17:24 2012 +0200| [d6f4fe68c8e87175e826fdca92e0f3c65793123e] | committer: Anton Khirnov

lavc: extend frame_size doxy.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6f4fe68c8e87175e826fdca92e0f3c65793123e
---

 libavcodec/avcodec.h |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index cda6703..64d45db 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2081,7 +2081,13 @@ typedef struct AVCodecContext {
 
     /* The following data should not be initialized. */
     /**
-     * Samples per packet, initialized when calling 'init'.
+     * Number of samples per channel in an audio frame.
+     *
+     * - encoding: set by libavcodec in avcodec_open2(). Each submitted frame
+     *   except the last must contain exactly frame_size samples per channel.
+     *   May be 0 when the codec has CODEC_CAP_VARIABLE_FRAME_SIZE set, then the
+     *   frame size is not restricted.
+     * - decoding: may be set by some decoders to indicate constant frame size
      */
     int frame_size;
 



More information about the ffmpeg-cvslog mailing list