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. --- common/av_common.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common') diff --git a/common/av_common.c b/common/av_common.c index d7ad8e172c..c91da79634 100644 --- a/common/av_common.c +++ b/common/av_common.c @@ -90,10 +90,6 @@ AVCodecParameters *mp_codec_params_to_av(struct mp_codec_params *c) // Video only avp->width = c->disp_w; avp->height = c->disp_h; - if (c->codec && strcmp(c->codec, "mp-rawvideo") == 0) { - avp->format = imgfmt2pixfmt(c->codec_tag); - avp->codec_tag = 0; - } // Audio only avp->sample_rate = c->samplerate; -- cgit v1.2.3