Mercurial > libavcodec.hg
changeset 11674:bb0470c1ebd9 libavcodec
Clarify how allocation works for the picture argument for
avcodec_decode_video3.
author | reimar |
---|---|
date | Sun, 02 May 2010 16:07:29 +0000 |
parents | da59da296153 |
children | 5c1363c233b8 |
files | avcodec.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avcodec.h Sat May 01 18:45:02 2010 +0000 +++ b/avcodec.h Sun May 02 16:07:29 2010 +0000 @@ -3464,6 +3464,8 @@ * * @param avctx the codec context * @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 call + * get_buffer to get memory for the actual image data. * @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