avcodec/dstdec: Use local channels variable