]> git.sesse.net Git - ffmpeg/commitdiff
avformat/avformat: Update AVInputFormat.read_packet documentation
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 7 Jan 2020 13:55:39 +0000 (14:55 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 Jan 2020 22:00:35 +0000 (23:00 +0100)
Since bae8844e351, the packet is automatically unreferenced in
ff_read_packet() when an error is returned; but the documentation of
this of AVInputFormat.read_packet has not been updated accordingly.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avformat.h

index d4d9a3b06ef894aa78685197d497b59eb99e3512..9b9b634ec35dc84ef7afb36377dc67dad8f1c04a 100644 (file)
@@ -715,8 +715,7 @@ typedef struct AVInputFormat {
      * AVFMTCTX_NOHEADER is used and only in the calling thread (not in a
      * background thread).
      * @return 0 on success, < 0 on error.
-     *         When returning an error, pkt must not have been allocated
-     *         or must be freed before returning
+     *         Upon returning an error, pkt must be unreferenced by the caller.
      */
     int (*read_packet)(struct AVFormatContext *, AVPacket *pkt);