aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-10 21:42:48 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-17 12:00:06 +0200
commita0452ee83750afe0e279d3cbe7a678e2a72f93b4 (patch)
treeef18e1cc90bd50b30186d639869ac6519a3ff4a9
parent12f3f41bbff75efb6f25da9ae470102103707aec (diff)
downloadffmpeg-a0452ee83750afe0e279d3cbe7a678e2a72f93b4.tar.gz
fftools/ffmpeg_mux_init: remove a redundant check
-rw-r--r--fftools/ffmpeg_mux_init.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index c16967cea8..74f0d5f56b 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -917,18 +917,16 @@ static int streamcopy_init(const Muxer *mux, const OptionsContext *o,
}
}
- if (ist->st->nb_side_data) {
- for (int i = 0; i < ist->st->nb_side_data; i++) {
- const AVPacketSideData *sd_src = &ist->st->side_data[i];
- uint8_t *dst_data;
-
- dst_data = av_stream_new_side_data(ost->st, sd_src->type, sd_src->size);
- if (!dst_data) {
- ret = AVERROR(ENOMEM);
- goto fail;
- }
- memcpy(dst_data, sd_src->data, sd_src->size);
+ for (int i = 0; i < ist->st->nb_side_data; i++) {
+ const AVPacketSideData *sd_src = &ist->st->side_data[i];
+ uint8_t *dst_data;
+
+ dst_data = av_stream_new_side_data(ost->st, sd_src->type, sd_src->size);
+ if (!dst_data) {
+ ret = AVERROR(ENOMEM);
+ goto fail;
}
+ memcpy(dst_data, sd_src->data, sd_src->size);
}
#if FFMPEG_ROTATION_METADATA