Flush stream only if avcodec_decode_video() read something.