diff options
author | James Almer <jamrial@gmail.com> | 2021-03-06 13:29:37 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-10 20:26:36 -0300 |
commit | d8a18c8fc2907004448cb45e704dc82bcd2df528 (patch) | |
tree | 224b56fc77577dc547649eb0acc5fd4a6ac12650 /libavcodec/decode.c | |
parent | 42e68fe01587b541c9ced34906b09e3c9c894e74 (diff) | |
download | ffmpeg-d8a18c8fc2907004448cb45e704dc82bcd2df528.tar.gz |
avcodec: use the buffer_size_t typedef where required
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r-- | libavcodec/decode.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 082188195c..c7dbf7b791 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -66,7 +66,8 @@ typedef struct FramePool { static int apply_param_change(AVCodecContext *avctx, const AVPacket *avpkt) { - int size, ret; + int ret; + buffer_size_t size; const uint8_t *data; uint32_t flags; int64_t val; @@ -349,7 +350,7 @@ static inline int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame, got_frame = 0; } else if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) { uint8_t *side; - int side_size; + buffer_size_t side_size; uint32_t discard_padding = 0; uint8_t skip_reason = 0; uint8_t discard_reason = 0; @@ -1709,7 +1710,7 @@ int avcodec_default_get_buffer2(AVCodecContext *avctx, AVFrame *frame, int flags static int add_metadata_from_side_data(const AVPacket *avpkt, AVFrame *frame) { - int size; + buffer_size_t size; const uint8_t *side_metadata; AVDictionary **frame_md = &frame->metadata; @@ -1755,7 +1756,7 @@ FF_ENABLE_DEPRECATION_WARNINGS frame->pkt_size = pkt->size; for (i = 0; i < FF_ARRAY_ELEMS(sd); i++) { - int size; + buffer_size_t size; uint8_t *packet_sd = av_packet_get_side_data(pkt, sd[i].packet, &size); if (packet_sd) { AVFrameSideData *frame_sd = av_frame_new_side_data(frame, |