aboutsummaryrefslogtreecommitdiffhomepage
path: root/common
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-05-20 11:10:55 +0200
committerGravatar wm4 <wm4@nowhere>2017-05-20 11:43:57 +0200
commit9b5e4e5715deede7bdea8e7a17f1bb85e4b7b09b (patch)
tree4f8547e631197fe41984cc359dbe77633e18b63b /common
parent37f0571973cc0f9f3884b2b45293e0a2c5a6ae23 (diff)
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 'common')
-rw-r--r--common/av_common.c4
1 files changed, 0 insertions, 4 deletions
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;