Some formats (like WMV) would send out audio packets that had channels set but did not specify a channel layout. Solution is to no longer rely on channel layout to get the channels and just get the channel count directly off the FFmpeg audio frame.