[FFmpeg-cvslog] r19132 - trunk/libavcodec/avcodec.h

michael subversion
Sun Jun 7 21:30:54 CEST 2009


Author: michael
Date: Sun Jun  7 21:30:54 2009
New Revision: 19132

Log:
Clarify (re)get_buffer() and CODEC_CAP_DR1 relation.

Modified:
   trunk/libavcodec/avcodec.h

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	Sun Jun  7 18:14:50 2009	(r19131)
+++ trunk/libavcodec/avcodec.h	Sun Jun  7 21:30:54 2009	(r19132)
@@ -1331,6 +1331,9 @@ typedef struct AVCodecContext {
      * If pic.reference is set then the frame will be read later by libavcodec.
      * avcodec_align_dimensions() should be used to find the required width and
      * height, as they normally need to be rounded up to the next multiple of 16.
+     * if CODEC_CAP_DR1 is not set then get_buffer() must call
+     * avcodec_default_get_buffer() instead of providing buffers allocated by
+     * some other means.
      * - encoding: unused
      * - decoding: Set by libavcodec., user can override.
      */
@@ -1959,6 +1962,9 @@ typedef struct AVCodecContext {
      * libavcodec will pass previous buffer in pic, function should return
      * same buffer or new buffer with old frame "painted" into it.
      * If pic.data[0] == NULL must behave like get_buffer().
+     * if CODEC_CAP_DR1 is not set then reget_buffer() must call
+     * avcodec_default_reget_buffer() instead of providing buffers allocated by
+     * some other means.
      * - encoding: unused
      * - decoding: Set by libavcodec., user can override
      */



More information about the ffmpeg-cvslog mailing list