Skip to content

Commit

Permalink
Set _img->bit_depth in y4m_input_fetch_frame()
Browse files Browse the repository at this point in the history
This is a port of
https://aomedia-review.googlesource.com/c/aom/+/169961.

Change-Id: I2aa0d12cafde0c73448bf8c57eab0cd92e846468
  • Loading branch information
wantehchang committed Feb 3, 2023
1 parent 858a8c6 commit 18a3421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions y4minput.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,7 @@ int y4m_input_fetch_frame(y4m_input *_y4m, FILE *_fin, vpx_image_t *_img) {
_img->fmt = _y4m->vpx_fmt;
_img->w = _img->d_w = _y4m->pic_w;
_img->h = _img->d_h = _y4m->pic_h;
_img->bit_depth = _y4m->bit_depth;
_img->x_chroma_shift = _y4m->dst_c_dec_h >> 1;
_img->y_chroma_shift = _y4m->dst_c_dec_v >> 1;
_img->bps = _y4m->bps;
Expand Down

0 comments on commit 18a3421

Please sign in to comment.