[FFmpeg-devel] [PATCH 2/2] ffmpeg: don't unnecessarily use a deprecated API function

wm4 nfxjfg at googlemail.com
Thu Mar 16 06:20:52 EET 2017


Since we've disabled side data merging in ffmpeg.c, this really changes
nothing.
---
 ffmpeg.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 63fc1bc5f4..bc2157e544 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -818,7 +818,6 @@ static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
     if (ost->nb_bitstream_filters) {
         int idx;
 
-        av_packet_split_side_data(pkt);
         ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt);
         if (ret < 0)
             goto finish;
@@ -4245,8 +4244,6 @@ static int process_input(int file_index)
 
     /* add the stream-global side data to the first packet */
     if (ist->nb_packets == 1) {
-        if (ist->st->nb_side_data)
-            av_packet_split_side_data(&pkt);
         for (i = 0; i < ist->st->nb_side_data; i++) {
             AVPacketSideData *src_sd = &ist->st->side_data[i];
             uint8_t *dst_data;
-- 
2.11.0



More information about the ffmpeg-devel mailing list