summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-24 11:56:48 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-25 11:08:15 +0900
commit57f5ad445dcb49e1a708d49d242b3fcf0fd6071c (patch)
treed362f90f1532dd92d6b179201d914e12fe12f9d5 /video
parenta5458a624dbdf039cdae99fb2d8ebb8ffdf13b0b (diff)
downloadmpv-57f5ad445dcb49e1a708d49d242b3fcf0fd6071c.tar.bz2
mpv-57f5ad445dcb49e1a708d49d242b3fcf0fd6071c.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). (cherry picked from commit 5baf74fa24493298fc83336da77f400ddac29d55)
Diffstat (limited to 'video')
-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) {