common/av_common: clean up mp_lavc_set_extradata

It no longer has any users, as the last ones (subtitle decoders)
were switched to mp_set_avctx_codec_headers.
This commit is contained in:
Jan Ekström 2023-03-14 23:31:52 +02:00
parent 9f5d7d5932
commit 1313f287e5
2 changed files with 0 additions and 15 deletions

View File

@ -40,20 +40,6 @@
#include "av_common.h"
#include "codecs.h"
int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size)
{
if (size) {
av_free(avctx->extradata);
avctx->extradata_size = 0;
avctx->extradata = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE);
if (!avctx->extradata)
return -1;
avctx->extradata_size = size;
memcpy(avctx->extradata, ptr, size);
}
return 0;
}
enum AVMediaType mp_to_av_stream_type(int type)
{
switch (type) {

View File

@ -31,7 +31,6 @@ struct mp_codec_params;
struct AVDictionary;
struct mp_log;
int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size);
enum AVMediaType mp_to_av_stream_type(int type);
AVCodecParameters *mp_codec_params_to_av(const struct mp_codec_params *c);
int mp_set_avctx_codec_headers(AVCodecContext *avctx, const struct mp_codec_params *c);