mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user