# HG changeset patch # User reimar # Date 1272816449 0 # Node ID bb0470c1ebd9111d8017bf8e8263f571a7d494b5 # Parent da59da2961536409e4ef3bc006115b41d434249b Clarify how allocation works for the picture argument for avcodec_decode_video3. diff -r da59da296153 -r bb0470c1ebd9 avcodec.h --- 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