# HG changeset patch # User michael # Date 1244403054 0 # Node ID bca8ee90e5ebff0692ba1f861842c9ffc949ef15 # Parent 336d3c384066dda70c6f6e75924c0ca0af37c77e Clarify (re)get_buffer() and CODEC_CAP_DR1 relation. diff -r 336d3c384066 -r bca8ee90e5eb avcodec.h --- a/avcodec.h Sun Jun 07 15:15:45 2009 +0000 +++ b/avcodec.h Sun Jun 07 19:30:54 2009 +0000 @@ -1331,6 +1331,9 @@ * 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 @@ * 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 */