summaryrefslogtreecommitdiffstats
path: root/common/av_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/av_common.c')
-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;