doc/examples/demuxing_decoding: simplify api_mode to refcount