videoio(ffmpeg): fix handling of AVERROR_EOF
videoio(ffmpeg): fix handling of AVERROR_EOF

decoder should be properly flushed after that

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv