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 /libavformat/segment.c | |
parent | b8c6aae575f09a1f2eef45e5b9d95b28790bc087 (diff) | |
download | ffmpeg-c3cd6b765ba65469401ece256d79b2ac15ac4a9f.tar.gz |
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 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 2ff2b5372e..f67456fa57 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -873,7 +873,7 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR(EINVAL); if (!st->codecpar->extradata_size) { - int pkt_extradata_size = 0; + int pkt_extradata_size; uint8_t *pkt_extradata = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, &pkt_extradata_size); if (pkt_extradata && pkt_extradata_size > 0) { ret = ff_alloc_extradata(st->codecpar, pkt_extradata_size); |