[FFmpeg-devel] [PATCH 6/7] lavc: expand doxy for AV_CODEC_FLAG_RECON_FRAME
Anton Khirnov
anton at khirnov.net
Fri Mar 24 11:14:50 EET 2023
---
libavcodec/avcodec.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index d1bcb3026c..7a6eb4c0e2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -239,6 +239,15 @@ typedef struct RcOverride{
*
* Should only be used with encoders flagged with the
* @ref AV_CODEC_CAP_ENCODER_RECON_FRAME capability.
+ *
+ * @note
+ * Each reconstructed frame returned by the encoder corresponds to the last
+ * encoded packet, i.e. the frames are returned in coded order rather than
+ * presentation order.
+ *
+ * @note
+ * Frame parameters (like pixel format or dimensions) do not have to match the
+ * AVCodecContext values. Make sure to use the values from the returned frame.
*/
#define AV_CODEC_FLAG_RECON_FRAME (1 << 6)
/**
--
2.39.1
More information about the ffmpeg-devel
mailing list