Forgotten in 753074721bd414874d18c372c491bdc6323fa3bf.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -785,7 +785,7 @@ static int set_pix_fmt(AVCodecContext *avctx, vpx_codec_caps_t codec_caps, · 784 unmodified lines | |||
| 785 | struct vpx_codec_enc_cfg *enccfg, vpx_codec_flags_t *flags, | 785 | struct vpx_codec_enc_cfg *enccfg, vpx_codec_flags_t *flags, |
| 786 | vpx_img_fmt_t *img_fmt) | 786 | vpx_img_fmt_t *img_fmt) |
| 787 | { | 787 | { |
| 788 | VPxContext av_unused *ctx = avctx->priv_data; | 788 | VPxContext *ctx = avctx->priv_data; |
| 789 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt); | 789 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt); |
| 790 | enccfg->g_bit_depth = enccfg->g_input_bit_depth = desc->comp[0].depth; | 790 | enccfg->g_bit_depth = enccfg->g_input_bit_depth = desc->comp[0].depth; |
| 791 | switch (avctx->pix_fmt) { | 791 | switch (avctx->pix_fmt) { |