doc/examples/decoding_encoding: fix storing all channels