The new code reads the input frame when its ready, the previous code did read the input frame during start_frame at which point it may not yet be available. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>