[mad-dev] obtaining stream length from mad decoder