diff options
author | James Almer <jamrial@gmail.com> | 2023-07-17 19:54:35 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-10-06 10:11:19 -0300 |
commit | d372c2f3d3ac4f45cc40f6eb353de294d2ddd90f (patch) | |
tree | 9a52bc9aa3eed1ff0542eae65077c4d8eedb6672 /fftools | |
parent | ae22271620df90567ba276832b33607d64e9ba9c (diff) | |
download | ffmpeg-d372c2f3d3ac4f45cc40f6eb353de294d2ddd90f.tar.gz |
fftools/ffmpeg: stop injecting stream side data in packets
This is no longer needed as the side data is available for decoders in the
AVCodecContext.
The tests affected reflect the removal of useless CPB and Stereo 3D side
data in packets.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg_demux.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 296a66cd11..c71edf01a5 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -480,28 +480,6 @@ static int input_packet_process(Demuxer *d, DemuxMsg *msg, AVPacket *src) ds->data_size += pkt->size; ds->nb_packets++; - /* add the stream-global side data to the first packet */ - if (ds->nb_packets == 1) { - for (int i = 0; i < ist->st->codecpar->nb_coded_side_data; i++) { - AVPacketSideData *src_sd = &ist->st->codecpar->coded_side_data[i]; - uint8_t *dst_data; - - if (src_sd->type == AV_PKT_DATA_DISPLAYMATRIX) - continue; - - if (av_packet_get_side_data(pkt, src_sd->type, NULL)) - continue; - - dst_data = av_packet_new_side_data(pkt, src_sd->type, src_sd->size); - if (!dst_data) { - ret = AVERROR(ENOMEM); - goto fail; - } - - memcpy(dst_data, src_sd->data, src_sd->size); - } - } - if (debug_ts) { av_log(NULL, AV_LOG_INFO, "demuxer+ffmpeg -> ist_index:%d:%d type:%s pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s off:%s off_time:%s\n", f->index, pkt->stream_index, |