From 9b5e4e5715deede7bdea8e7a17f1bb85e4b7b09b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 May 2017 11:10:55 +0200 Subject: demux_raw: drop "mp-rawvideo" use This is an old pseudo codec to pass through the pixel format. Setup a suitable AVCodecParameter directly instead, so the "rawvideo" codec can be used. --- video/decode/vd_lavc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'video/decode') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 9c1a2a0317..8febf93325 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -556,9 +556,6 @@ static void init_avctx(struct dec_video *vd, const char *decoder, assert(!ctx->avctx); - if (strcmp(decoder, "mp-rawvideo") == 0) - decoder = "rawvideo"; - AVCodec *lavc_codec = avcodec_find_decoder_by_name(decoder); if (!lavc_codec) return; @@ -1216,8 +1213,6 @@ static int control(struct dec_video *vd, int cmd, void *arg) static void add_decoders(struct mp_decoder_list *list) { mp_add_lavc_decoders(list, AVMEDIA_TYPE_VIDEO); - mp_add_decoder(list, "lavc", "mp-rawvideo", "mp-rawvideo", - "raw video"); } const struct vd_functions mpcodecs_vd_ffmpeg = { -- cgit v1.2.3