This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 00caeba050 avcodec: rename avcodec_receive_frame2 to 
avcodec_receive_frame_flags
00caeba050 is described below

commit 00caeba050df414465e764a0556b2bef67662d1c
Author:     James Almer <[email protected]>
AuthorDate: Sun Dec 7 12:41:27 2025 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sun Dec 7 12:47:46 2025 -0300

    avcodec: rename avcodec_receive_frame2 to avcodec_receive_frame_flags
    
    It's a name that communicates its functionality in a better way.
    Since the function was introduced very recently, we can safely rename it.
    
    Signed-off-by: James Almer <[email protected]>
---
 doc/APIchanges       | 4 ++--
 fftools/ffmpeg_dec.c | 2 +-
 libavcodec/avcodec.c | 4 ++--
 libavcodec/avcodec.h | 4 ++--
 libavcodec/version.h | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index f308fd40a2..744c52ff29 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,8 +2,8 @@ The last version increases of all libraries were on 2025-03-28
 
 API changes, most recent first:
 
-2025-12-xx - xxxxxxxxxx - lavc 62.22.100 - avcodec.h
-  Add avcodec_receive_frame2().
+2025-12-xx - xxxxxxxxxx - lavc 62.22.101 - avcodec.h
+  Add avcodec_receive_frame_flags().
   Add AV_CODEC_RECEIVE_FRAME_FLAG_SYNCHRONOUS.
 
 2025-09-xx - xxxxxxxxxx - lavfi 11.10.100 - buffersrc.h
diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index a76d4b1ae8..5020684a28 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -751,7 +751,7 @@ static int packet_decode(DecoderPriv *dp, AVPacket *pkt, 
AVFrame *frame)
         av_frame_unref(frame);
 
         update_benchmark(NULL);
-        ret = avcodec_receive_frame2(dec, frame, flags);
+        ret = avcodec_receive_frame_flags(dec, frame, flags);
         update_benchmark("decode_%s %s", type_desc, dp->parent_name);
 
         if (ret == AVERROR(EAGAIN)) {
diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c
index 8b4b305fcd..de4e083db1 100644
--- a/libavcodec/avcodec.c
+++ b/libavcodec/avcodec.c
@@ -705,7 +705,7 @@ int avcodec_is_open(AVCodecContext *s)
     return !!s->internal;
 }
 
-int attribute_align_arg avcodec_receive_frame2(AVCodecContext *avctx,
+int attribute_align_arg avcodec_receive_frame_flags(AVCodecContext *avctx,
                                                AVFrame *frame, unsigned flags)
 {
     av_frame_unref(frame);
@@ -720,7 +720,7 @@ int attribute_align_arg 
avcodec_receive_frame2(AVCodecContext *avctx,
 
 int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
 {
-    return avcodec_receive_frame2(avctx, frame, 0);
+    return avcodec_receive_frame_flags(avctx, frame, 0);
 }
 
 #define WRAP_CONFIG(allowed_type, field, var, field_type, sentinel_check)   \
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 92c0207cf6..1a8f77af82 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2379,10 +2379,10 @@ int avcodec_send_packet(AVCodecContext *avctx, const 
AVPacket *avpkt);
  *                          @ref AV_CODEC_FLAG_RECON_FRAME flag enabled
  * @retval "other negative error code" legitimate decoding errors
  */
-int avcodec_receive_frame2(AVCodecContext *avctx, AVFrame *frame, unsigned 
flags);
+int avcodec_receive_frame_flags(AVCodecContext *avctx, AVFrame *frame, 
unsigned flags);
 
 /**
- * Alias for `avcodec_receive_frame2(avctx, frame, 0)`.
+ * Alias for `avcodec_receive_frame_flags(avctx, frame, 0)`.
  */
 int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame);
 
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 9411511e04..9f55381cf1 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -30,7 +30,7 @@
 #include "version_major.h"
 
 #define LIBAVCODEC_VERSION_MINOR  22
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to