diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-06-03 21:53:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-06-03 21:53:41 +0000 |
commit | 3bc4e21b7b434906f119eeb2fd955f400222c1ee (patch) | |
tree | c7f28e426ebdc6d4438cf8ada894200601f7b105 /libavcodec/avcodec.h | |
parent | 4fff60841f5306638a972ee34fd2191e101289e3 (diff) | |
download | ffmpeg-3bc4e21b7b434906f119eeb2fd955f400222c1ee.tar.gz |
Document the frames returned by the decoder better.
Originally committed as revision 23456 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index b37329d35c..c6a1bc3278 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3501,6 +3501,11 @@ attribute_deprecated int avcodec_decode_video(AVCodecContext *avctx, AVFrame *pi * @param[out] picture The AVFrame in which the decoded video frame will be stored. * Use avcodec_alloc_frame to get an AVFrame, the codec will * allocate memory for the actual bitmap. + * with default get/release_buffer(), the decoder frees/reuses the bitmap as it sees fit. + * with overridden get/release_buffer() the user decides into what buffer the decoder + * decodes and the decoder tells the user once it does not need the data anymore, + * the user app can at this point free/reuse/keep the memory as it sees fit. + * * @param[in] avpkt The input AVpacket containing the input buffer. * You can create such packet with av_init_packet() and by then setting * data and size, some decoders might in addition need other fields like |