mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 11:00:08 +01:00
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 <jamrial@gmail.com>
This commit is contained in:
@@ -2,8 +2,8 @@ The last version increases of all libraries were on 2025-03-28
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
2025-12-xx - xxxxxxxxxx - lavc 62.22.100 - avcodec.h
|
2025-12-xx - xxxxxxxxxx - lavc 62.22.101 - avcodec.h
|
||||||
Add avcodec_receive_frame2().
|
Add avcodec_receive_frame_flags().
|
||||||
Add AV_CODEC_RECEIVE_FRAME_FLAG_SYNCHRONOUS.
|
Add AV_CODEC_RECEIVE_FRAME_FLAG_SYNCHRONOUS.
|
||||||
|
|
||||||
2025-09-xx - xxxxxxxxxx - lavfi 11.10.100 - buffersrc.h
|
2025-09-xx - xxxxxxxxxx - lavfi 11.10.100 - buffersrc.h
|
||||||
|
|||||||
@@ -751,7 +751,7 @@ static int packet_decode(DecoderPriv *dp, AVPacket *pkt, AVFrame *frame)
|
|||||||
av_frame_unref(frame);
|
av_frame_unref(frame);
|
||||||
|
|
||||||
update_benchmark(NULL);
|
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);
|
update_benchmark("decode_%s %s", type_desc, dp->parent_name);
|
||||||
|
|
||||||
if (ret == AVERROR(EAGAIN)) {
|
if (ret == AVERROR(EAGAIN)) {
|
||||||
|
|||||||
@@ -705,7 +705,7 @@ int avcodec_is_open(AVCodecContext *s)
|
|||||||
return !!s->internal;
|
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)
|
AVFrame *frame, unsigned flags)
|
||||||
{
|
{
|
||||||
av_frame_unref(frame);
|
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)
|
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) \
|
#define WRAP_CONFIG(allowed_type, field, var, field_type, sentinel_check) \
|
||||||
|
|||||||
@@ -2379,10 +2379,10 @@ int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt);
|
|||||||
* @ref AV_CODEC_FLAG_RECON_FRAME flag enabled
|
* @ref AV_CODEC_FLAG_RECON_FRAME flag enabled
|
||||||
* @retval "other negative error code" legitimate decoding errors
|
* @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);
|
int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame);
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#include "version_major.h"
|
#include "version_major.h"
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_MINOR 22
|
#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, \
|
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||||
LIBAVCODEC_VERSION_MINOR, \
|
LIBAVCODEC_VERSION_MINOR, \
|
||||||
|
|||||||
Reference in New Issue
Block a user