On Tue, Feb 10, 2015 at 3:06 PM, Anton Khirnov <[email protected]> wrote: > Quoting Vittorio Giovara (2014-12-04 20:56:38) >> --- >> libavcodec/avcodec.h | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >> >> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h >> index b3c6419..d5feb35 100644 >> --- a/libavcodec/avcodec.h >> +++ b/libavcodec/avcodec.h >> @@ -3266,6 +3266,9 @@ void avcodec_free_frame(AVFrame **frame); >> * >> * @warning This function is not thread safe! >> * >> + * @note Always call this function before using decoding routines (such as >> + * @ref avcodec_decode_video2()). >> + * >> * @code >> * avcodec_register_all(); >> * av_dict_set(&opts, "b", "2.5M", 0); >> @@ -3595,6 +3598,9 @@ void avcodec_align_dimensions2(AVCodecContext *s, int >> *width, int *height, >> * larger than the actual read bytes because some optimized >> bitstream >> * readers read 32 or 64 bits at once and could read over the end. >> * >> + * @note The AVCodec MUST have been opened with @ref avcodec_open2() before >> + * packets may be fed to the decoder. > > It's not the AVCodec that must be opened, but the AVCodecContext.
thanks for spotting, replacing before pushing... -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
