Commit 748ed2c9a8 for ffmpeg

commit 748ed2c9a870b09a9a2dd789c618aeb1f0cf8221
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Tue Oct 6 16:22:51 2026 +0200

    avcodec/avcodec: document that a parser cannot be used after EOF

    Fixes: QjW951nk93s9
    Found-by: Mike Murunov [genproof.com]

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index dcd19f8ff5..593ce08036 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2817,7 +2817,9 @@ AVCodecParserContext *av_parser_init(enum AVCodecID codec_id);
  * @param buf_size      buffer size in bytes without the padding. I.e. the full buffer
                         size is assumed to be buf_size + AV_INPUT_BUFFER_PADDING_SIZE.
                         To signal EOF, this should be 0 (so that the last frame
-                        can be output).
+                        can be output). After EOF has been signaled, only
+                        further calls with buf_size 0 are allowed; to parse
+                        new data, close the parser and allocate a new one.
  * @param pts           input presentation timestamp.
  * @param dts           input decoding timestamp.
  * @param pos           input byte position in stream.