stats: prevent SIGFPE caused by a possible division by zero

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
stats: fix incorrect parsing of adaptation field flags

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>