Use av_get_bits_per_pixel() for computing the bits per pixel of the