avutil/frame: change av_frame_new_side_data() size parameter type to size_t
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
14040a1d91
commit
dbd47b7990
@ -15,9 +15,9 @@ libavutil: 2017-10-21
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
2021-03-10 - xxxxxxxxxx - lavu 56.68.100 - buffer.h
|
2021-03-10 - xxxxxxxxxx - lavu 56.68.100 - buffer.h frame.h
|
||||||
Change AVBufferRef related function and struct size parameter and fields
|
Change AVBufferRef and relevant AVFrame function and struct size
|
||||||
type to size_t at next major bump.
|
parameter and fields type to size_t at next major bump.
|
||||||
|
|
||||||
2021-03-04 - xxxxxxxxxx - lavc 58.128.101 - avcodec.h
|
2021-03-04 - xxxxxxxxxx - lavc 58.128.101 - avcodec.h
|
||||||
Enable err_recognition to be set for encoders.
|
Enable err_recognition to be set for encoders.
|
||||||
|
@ -725,7 +725,7 @@ AVFrameSideData *av_frame_new_side_data_from_buf(AVFrame *frame,
|
|||||||
|
|
||||||
AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
|
AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
|
||||||
enum AVFrameSideDataType type,
|
enum AVFrameSideDataType type,
|
||||||
int size)
|
buffer_size_t size)
|
||||||
{
|
{
|
||||||
AVFrameSideData *ret;
|
AVFrameSideData *ret;
|
||||||
AVBufferRef *buf = av_buffer_alloc(size);
|
AVBufferRef *buf = av_buffer_alloc(size);
|
||||||
|
@ -220,7 +220,11 @@ enum AVActiveFormatDescription {
|
|||||||
typedef struct AVFrameSideData {
|
typedef struct AVFrameSideData {
|
||||||
enum AVFrameSideDataType type;
|
enum AVFrameSideDataType type;
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
|
#if FF_API_BUFFER_SIZE_T
|
||||||
int size;
|
int size;
|
||||||
|
#else
|
||||||
|
size_t size;
|
||||||
|
#endif
|
||||||
AVDictionary *metadata;
|
AVDictionary *metadata;
|
||||||
AVBufferRef *buf;
|
AVBufferRef *buf;
|
||||||
} AVFrameSideData;
|
} AVFrameSideData;
|
||||||
@ -913,7 +917,11 @@ AVBufferRef *av_frame_get_plane_buffer(AVFrame *frame, int plane);
|
|||||||
*/
|
*/
|
||||||
AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
|
AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
|
||||||
enum AVFrameSideDataType type,
|
enum AVFrameSideDataType type,
|
||||||
|
#if FF_API_BUFFER_SIZE_T
|
||||||
int size);
|
int size);
|
||||||
|
#else
|
||||||
|
size_t size);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new side data to a frame from an existing AVBufferRef
|
* Add a new side data to a frame from an existing AVBufferRef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user