mirror of https://github.com/mpv-player/mpv
video: remove redundant codec parameters
Remove coded_width and coded_height. This was originally added in commitfd7dde40
, when BITMAPINFOHEADER was killed. The separate fields became redundant in commite68f4be1
. Remove them (nothing passed to the decoders actually changes with _this_ commit).
This commit is contained in:
parent
b629da9a40
commit
5baf74fa24
|
@ -1282,8 +1282,6 @@ static int demux_mkv_open_video(demuxer_t *demuxer, mkv_track_t *track)
|
|||
return 1;
|
||||
}
|
||||
|
||||
sh_v->coded_width = track->v_width;
|
||||
sh_v->coded_height = track->v_height;
|
||||
sh_v->extradata = talloc_memdup(sh_v, extradata, extradata_size);
|
||||
sh_v->extradata_len = extradata_size;
|
||||
if (!sh->codec) {
|
||||
|
|
|
@ -83,7 +83,6 @@ typedef struct sh_video {
|
|||
float aspect; // aspect ratio stored in the file (for prescaling)
|
||||
int bitrate; // compressed bits/sec
|
||||
int bits_per_coded_sample;
|
||||
int coded_width, coded_height;
|
||||
unsigned char *extradata;
|
||||
int extradata_len;
|
||||
int disp_w, disp_h; // display size
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue