summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-24 11:56:48 +0100
committerwm4 <wm4@nowhere>2015-02-24 11:56:48 +0100
commit5baf74fa24493298fc83336da77f400ddac29d55 (patch)
tree075a544ae6c34e21020eaea96e4dc976437fe936 /video/decode
parentb629da9a40673ccd67bf7661cfdd10c8f79f6eaa (diff)
downloadmpv-5baf74fa24493298fc83336da77f400ddac29d55.tar.bz2
mpv-5baf74fa24493298fc83336da77f400ddac29d55.tar.xz
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).
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd_lavc.c5
1 files changed, 0 insertions, 5 deletions
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) {