[FFmpeg-cvslog] fftools/ffmpeg_dec: remove side data copy block
James Almer
git at videolan.org
Mon Mar 3 23:16:45 EET 2025
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Feb 26 13:40:04 2025 -0300| [848576b4dfdbacf42017bb81c755482dc6845cc5] | committer: James Almer
fftools/ffmpeg_dec: remove side data copy block
It's no longer needed now that lavc handles this.
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=848576b4dfdbacf42017bb81c755482dc6845cc5
---
fftools/ffmpeg_dec.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index 01a6933bcc..62edbb6c24 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -788,15 +788,6 @@ static int packet_decode(DecoderPriv *dp, AVPacket *pkt, AVFrame *frame)
frame->time_base = dec->pkt_timebase;
- for (int i = 0; i < dec->nb_decoded_side_data; i++) {
- const AVFrameSideData *src = dec->decoded_side_data[i];
- if (av_frame_side_data_get(frame->side_data, frame->nb_side_data, src->type))
- continue;
- ret = av_frame_side_data_clone(&frame->side_data, &frame->nb_side_data, src, 0);
- if (ret < 0)
- return ret;
- }
-
if (dec->codec_type == AVMEDIA_TYPE_AUDIO) {
dp->dec.samples_decoded += frame->nb_samples;
More information about the ffmpeg-cvslog
mailing list