diff options
author | wm4 <wm4@nowhere> | 2017-05-20 11:10:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-05-20 11:43:57 +0200 |
commit | 9b5e4e5715deede7bdea8e7a17f1bb85e4b7b09b (patch) | |
tree | 4f8547e631197fe41984cc359dbe77633e18b63b /video | |
parent | 37f0571973cc0f9f3884b2b45293e0a2c5a6ae23 (diff) | |
download | mpv-9b5e4e5715deede7bdea8e7a17f1bb85e4b7b09b.tar.bz2 mpv-9b5e4e5715deede7bdea8e7a17f1bb85e4b7b09b.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vd_lavc.c | 5 |
1 files changed, 0 insertions, 5 deletions
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 = { |