]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Clarify (re)get_buffer() and CODEC_CAP_DR1 relation.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 7 Jun 2009 19:30:54 +0000 (19:30 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 7 Jun 2009 19:30:54 +0000 (19:30 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19132 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/avcodec.h

index 900e3b5301b787a7b1708769c0c89d52a5d692b7..aaa95b55bc0922f603ffa8fa7eda294462a04250 100644 (file)
@@ -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
      */