do not exit avthread too early

if video stream has only 1 frame we should keep it displaying