It's no longer needed now that lavc handles this.
Unified · Split
| @@ -788,15 +788,6 @@ static int packet_decode(DecoderPriv *dp, AVPacket *pkt, AVFrame *frame) · 787 unmodified lines | ||
| 788 | 788 | |
| 789 | 789 | frame->time_base = dec->pkt_timebase; |
| 790 | 790 | |
| 791 | − for (int i = 0; i < dec->nb_decoded_side_data; i++) { | |
| 792 | − const AVFrameSideData *src = dec->decoded_side_data[i]; | |
| 793 | − if (av_frame_side_data_get(frame->side_data, frame->nb_side_data, src->type)) | |
| 794 | − continue; | |
| 795 | − ret = av_frame_side_data_clone(&frame->side_data, &frame->nb_side_data, src, 0); | |
| 796 | − if (ret < 0) | |
| 797 | − return ret; | |
| 798 | − } | |
| 799 | − | |
| 800 | 791 | if (dec->codec_type == AVMEDIA_TYPE_AUDIO) { |
| 801 | 792 | dp->dec.samples_decoded += frame->nb_samples; |
| 802 | 793 | |