Use correct libavutil API for calculating bitdepth