1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

fftools/ffmpeg_dec: remove side data copy block

It's no longer needed now that lavc handles this.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-02-26 13:40:04 -03:00
parent 603334e86f
commit 848576b4df

View File

@ -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;