From 5baf74fa24493298fc83336da77f400ddac29d55 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Feb 2015 11:56:48 +0100 Subject: video: remove redundant codec parameters Remove coded_width and coded_height. This was originally added in commit fd7dde40, when BITMAPINFOHEADER was killed. The separate fields became redundant in commit e68f4be1. Remove them (nothing passed to the decoders actually changes with _this_ commit). --- video/decode/vd_lavc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 1982656f75..9e0a778990 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -402,11 +402,6 @@ static void init_avctx(struct dec_video *vd, const char *decoder, avctx->coded_height = sh->video->disp_h; avctx->bits_per_coded_sample = sh->video->bits_per_coded_sample; - if (sh->video->coded_width && sh->video->coded_height) { - avctx->coded_width = sh->video->coded_width; - avctx->coded_height = sh->video->coded_height; - } - mp_lavc_set_extradata(avctx, sh->video->extradata, sh->video->extradata_len); if (mp_rawvideo) { -- cgit v1.2.3