[FFmpeg-devel] [PATCH 12/12] fftools: stop propagating the encoder's coded_side_data

James Almer jamrial at gmail.com
Mon Aug 28 15:35:04 EEST 2023


It's no longer needed

Signed-off-by: James Almer <jamrial at gmail.com>
---
 fftools/ffmpeg_enc.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index 852d1f6282..6ed35f737f 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -423,20 +423,6 @@ int enc_open(OutputStream *ost, AVFrame *frame)
         return ret;
     }
 
-    if (ost->enc_ctx->nb_coded_side_data) {
-        int i;
-
-        for (i = 0; i < ost->enc_ctx->nb_coded_side_data; i++) {
-            const AVPacketSideData *sd_src = &ost->enc_ctx->coded_side_data[i];
-            AVPacketSideData *sd_dst;
-
-            sd_dst = av_packet_side_data_set_new(&ost->par_in->side_data, sd_src->type, sd_src->size);
-            if (!sd_dst)
-                return AVERROR(ENOMEM);
-            memcpy(sd_dst->data, sd_src->data, sd_src->size);
-        }
-    }
-
     /*
      * Add global input side data. For now this is naive, and copies it
      * from the input stream's global side data. All side data should
-- 
2.41.0



More information about the ffmpeg-devel mailing list