mirror of https://github.com/mpv-player/mpv
av_common: drop old hack against ancient lavc vdpau wrapper
Seems like they finally got rid of this. It was the first lavc vdpau API, and mpv stopped supporting it in favor of newer APIs a long time ago, causing confusion to users who tried to enable vdpau decoding by forcing the decoders (MPlayer style).
This commit is contained in:
parent
80359c6615
commit
8b141ab9ac
|
@ -217,11 +217,6 @@ void mp_set_avcodec_threads(struct mp_log *l, AVCodecContext *avctx, int threads
|
||||||
avctx->thread_count = threads;
|
avctx->thread_count = threads;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool is_crap(AVCodec *codec)
|
|
||||||
{
|
|
||||||
return !!strstr(codec->name, "_vdpau");
|
|
||||||
}
|
|
||||||
|
|
||||||
void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type)
|
void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type)
|
||||||
{
|
{
|
||||||
AVCodec *cur = NULL;
|
AVCodec *cur = NULL;
|
||||||
|
@ -229,7 +224,7 @@ void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type)
|
||||||
cur = av_codec_next(cur);
|
cur = av_codec_next(cur);
|
||||||
if (!cur)
|
if (!cur)
|
||||||
break;
|
break;
|
||||||
if (av_codec_is_decoder(cur) && cur->type == type && !is_crap(cur)) {
|
if (av_codec_is_decoder(cur) && cur->type == type) {
|
||||||
mp_add_decoder(list, "lavc", mp_codec_from_av_codec_id(cur->id),
|
mp_add_decoder(list, "lavc", mp_codec_from_av_codec_id(cur->id),
|
||||||
cur->name, cur->long_name);
|
cur->name, cur->long_name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue