Update demux.cpp