Quoting Jan Ekström (2024-02-29 17:42:57) > +/** > + * Add multiple side data entries to an AVCodecContext set in one go, for > + * example from an AVFrame. > + * > + * In case the function fails to add a side data entry, it will clear the > + * whole side data set. > + * > + * @param avctx context to which the side data should be added > + * @param sd array of side data to use as input. > + * if null, clears out the side data for this context. > + * @param nb_sd integer containing the number of entries in the array. > + * @param flags Some combination of AV_FRAME_SIDE_DATA_SET_FLAG_* flags, or > 0. > + * > + * @return negative error code on failure, >=0 on success. > + * > + * @see av_frame_side_data_set_new_entry regarding the flags. > + */ > +int avcodec_configure_side_data(AVCodecContext *avctx, > + const AVFrameSideData **sd, const int nb_sd, > + unsigned int flags);
Why should this be tied to avcodec and not just av_frame_side_data_copy()? -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".