diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-21 06:50:03 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-22 12:20:37 +0200 |
commit | c3cd6b765ba65469401ece256d79b2ac15ac4a9f (patch) | |
tree | 43b6c4115b37dffa24a1c08b15e5878b317d3f73 /libavcodec | |
parent | b8c6aae575f09a1f2eef45e5b9d95b28790bc087 (diff) |
avcodec, avformat: Remove unnecessary initializations of side data size
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/audiotoolboxdec.c | 2 | ||||
-rw-r--r-- | libavcodec/decode.c | 2 | ||||
-rw-r--r-- | libavcodec/libvpxdec.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 5c0a9de8f6..66055b79aa 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @@ -483,7 +483,7 @@ static int ffat_decode(AVCodecContext *avctx, void *data, if (avctx->codec_id == AV_CODEC_ID_AAC) { if (!at->extradata_size) { uint8_t *side_data; - int side_data_size = 0; + int side_data_size; side_data = av_packet_get_side_data(avpkt, AV_PKT_DATA_NEW_EXTRADATA, &side_data_size); diff --git a/libavcodec/decode.c b/libavcodec/decode.c index a4e50c0d03..de9c079f9d 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -66,7 +66,7 @@ typedef struct FramePool { static int apply_param_change(AVCodecContext *avctx, const AVPacket *avpkt) { - int size = 0, ret; + int size, ret; const uint8_t *data; uint32_t flags; int64_t val; diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c index 1063c546b0..eddcea8941 100644 --- a/libavcodec/libvpxdec.c +++ b/libavcodec/libvpxdec.c @@ -220,7 +220,7 @@ static int vpx_decode(AVCodecContext *avctx, struct vpx_image *img, *img_alpha; int ret; uint8_t *side_data = NULL; - int side_data_size = 0; + int side_data_size; ret = decode_frame(avctx, &ctx->decoder, avpkt->data, avpkt->size); if (ret) |