save/restore the bits per sample in i_level when possible
As seen in !4215 (closed) some libavcodec decoders require that information to decode properly. After !4196 (merged) that information was not available anymore.
The use of a profile and codecs needing the bits per sample should be mutually exclusive. Otherwise the profile might as well designate the bits per sample.
Edited by Steve Lhomme